Package org.openwms.common.location.impl
Class LocationGroupEventPropagator
java.lang.Object
org.openwms.common.location.impl.LocationGroupEventPropagator
A LocationGroupEventPropagator.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
private final LocationGroupMapper
private final LocationMapper
private static final org.slf4j.Logger
private final jakarta.validation.Validator
-
Constructor Summary
ConstructorDescriptionLocationGroupEventPropagator
(org.springframework.amqp.core.AmqpTemplate amqpTemplate, jakarta.validation.Validator validator, String exchangeName, LocationMapper locationMapper, LocationGroupMapper locationGroupMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(LocationGroupEvent event) void
onLocationEvent
(LocationEvent event) (package private) void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
validator
private final jakarta.validation.Validator validator -
exchangeName
-
locationMapper
-
locationGroupMapper
-
-
Constructor Details
-
LocationGroupEventPropagator
LocationGroupEventPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, jakarta.validation.Validator validator, @Value("${owms.events.common.lg.exchange-name}") String exchangeName, LocationMapper locationMapper, LocationGroupMapper locationGroupMapper)
-
-
Method Details
-
onStartup
@PostConstruct void onStartup() -
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onEvent(LocationGroupEvent event) -
onLocationEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onLocationEvent(LocationEvent event)
-