Package org.openwms.wms.receiving.events
Class EventPropagator
java.lang.Object
org.openwms.wms.receiving.events.EventPropagator
A EventPropagator is a Spring managed bean, activated in profile ASYNCHRONOUS that propagates internal events to the outer world via
AMQP.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private static final org.slf4j.Logger
private final ReceivingMOMapper
private final String
-
Constructor Summary
ConstructorDescriptionEventPropagator
(org.springframework.amqp.core.AmqpTemplate amqpTemplate, ReceivingMOMapper mapper, String receivingExchangeName) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
mapper
-
receivingExchangeName
-
-
Constructor Details
-
EventPropagator
public EventPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, ReceivingMOMapper mapper, @Value("${owms.events.receiving.exchange-name}") String receivingExchangeName)
-
-
Method Details
-
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onEvent(ReceivingOrderStateChangeEvent event) -
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public <T extends AbstractReceivingOrderPosition> void onEvent(ReceivingOrderPositionStateChangeEvent<T> event)
-