Package org.openwms.wms.movements.impl
Class PutawayAdapter
java.lang.Object
org.openwms.wms.movements.impl.PutawayAdapter
A PutawayAdapter is a Spring managed transactional event listener that acts as an adapter to the
PutawayApi
that is called after
a Movement
has been created successfully.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationEventPublisher
private static final org.slf4j.Logger
private final MovementProperties
private final PutawayApi
private final MovementRepository
-
Constructor Summary
ConstructorDescriptionPutawayAdapter
(org.springframework.context.ApplicationEventPublisher eventPublisher, MovementProperties properties, MovementRepository repository, PutawayApi putawayApi) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
eventPublisher
private final org.springframework.context.ApplicationEventPublisher eventPublisher -
properties
-
repository
-
putawayApi
-
-
Constructor Details
-
PutawayAdapter
PutawayAdapter(org.springframework.context.ApplicationEventPublisher eventPublisher, MovementProperties properties, MovementRepository repository, PutawayApi putawayApi)
-
-
Method Details
-
onEvent
@ConditionalOnExpression("${owms.movement.putaway-resolution-enabled}") @Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW, noRollbackFor=java.lang.Exception.class) public void onEvent(MovementEvent event)
-