Package org.openwms.tms.impl.state
Class Initializer
java.lang.Object
org.openwms.tms.impl.state.Initializer
A Initializer.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContext
private static final org.slf4j.Logger
private final TransportOrderRepository
private final StateManager
private final org.openwms.common.transport.api.TransportUnitApi
-
Constructor Summary
ConstructorDescriptionInitializer
(TransportOrderRepository repository, org.openwms.common.transport.api.TransportUnitApi transportUnitApi, StateManager stateManager, org.springframework.context.ApplicationContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(TransportServiceEvent event) Handle an application event.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
repository
-
transportUnitApi
private final org.openwms.common.transport.api.TransportUnitApi transportUnitApi -
stateManager
-
ctx
private final org.springframework.context.ApplicationContext ctx
-
-
Constructor Details
-
Initializer
Initializer(TransportOrderRepository repository, org.openwms.common.transport.api.TransportUnitApi transportUnitApi, StateManager stateManager, org.springframework.context.ApplicationContext ctx)
-
-
Method Details
-
onEvent
@EventListener @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void onEvent(TransportServiceEvent event) Handle an application event.- Parameters:
event
- the event to respond to
-