public abstract class AbstractSpeedment extends Object implements Speedment
Speedment
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractSpeedment() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Speedment instance and deallocates any allocated resources.
|
<ENTITY> ManagerConfigurator<ENTITY> |
configure(Class<? extends Manager<ENTITY>> managerClass)
Creates and Returns a manager configurator that can be used to configure
an existing manager.
|
<T> Optional<T> |
get(Class<T> type)
Returns the specified component from the platform, or if it does not
exist, an empty
Optional . |
<T> T |
getOrThrow(Class<T> componentClass)
Returns the specified component from the platform, or if it does not
exist, throws a
SpeedmentException . |
public <T> Optional<T> get(Class<T> type)
Speedment
Optional
.public <T> T getOrThrow(Class<T> componentClass) throws SpeedmentException
Speedment
SpeedmentException
.getOrThrow
in interface Speedment
T
- the component interface typecomponentClass
- the component interface classSpeedmentException
- if it was not installedpublic <ENTITY> ManagerConfigurator<ENTITY> configure(Class<? extends Manager<ENTITY>> managerClass)
Speedment
public void close()
Speedment
close
in interface Speedment
close
in interface AutoCloseable
Copyright © 2018 Speedment, Inc.. All rights reserved.