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)
SpeedmentOptional.public <T> T getOrThrow(Class<T> componentClass) throws SpeedmentException
SpeedmentSpeedmentException.getOrThrow in interface SpeedmentT - the component interface typecomponentClass - the component interface classSpeedmentException - if it was not installedpublic <ENTITY> ManagerConfigurator<ENTITY> configure(Class<? extends Manager<ENTITY>> managerClass)
Speedmentpublic void close()
Speedmentclose in interface Speedmentclose in interface AutoCloseableCopyright © 2019 Speedment, Inc.. All rights reserved.