public interface ManagerComponent extends Component
Lifecyclable.State
LIFECYCLABLE_LOGGER
Modifier and Type | Method and Description |
---|---|
<E> Manager<E> |
findByTable(Table table)
Obtains and returns the currently associated
Manager
implementation for the given Table. |
default Class<ManagerComponent> |
getComponentClass()
Returns the Component interface Class this Component implements.
|
<E> Manager<E> |
managerOf(Class<E> entityClass)
Obtains and returns the currently associated
Manager
implementation for the given Entity interface Class. |
<E> void |
put(Manager<E> manager)
Puts (associates) a
Manager implementation into the
ManagerComponent . |
Stream<Manager<?>> |
stream()
|
asSoftware, defaultCopy, getSpeedment, isInternal
getState, initialize, isInitialized, isLoaded, isResolved, isStarted, isStopped, load, onInitialize, onLoad, onResolve, onStart, onStop, postStop, preInitialize, preLoad, preResolve, preStart, preStop, resolve, setState, start, stop
default Class<ManagerComponent> getComponentClass()
Component
getComponentClass
in interface Component
<E> void put(Manager<E> manager)
Manager
implementation into the
ManagerComponent
. If a previous Manager
was associated
with an Entity class, table or interface, that association(s) is/are
replaced.E
- the entity interface typemanager
- to associate<E> Manager<E> managerOf(Class<E> entityClass) throws SpeedmentException
Manager
implementation for the given Entity interface Class. If no Manager exists
for the given entityClass, a SpeedmentException will be thrown.E
- the entity interface typeentityClass
- the entity interface Class
Manager
implementation for the given Entity interface ClassSpeedmentException
- if no Manager exists for the given entityClass<E> Manager<E> findByTable(Table table)
Manager
implementation for the given Table.E
- the Entity interface typetable
- the table to useManager
implementation for
the given tableCopyright © 2016 Speedment, Inc.. All rights reserved.