Class LocationGroupEventPropagator

java.lang.Object
org.openwms.common.location.impl.LocationGroupEventPropagator

@Profile("ASYNCHRONOUS") @RefreshScope @Component class LocationGroupEventPropagator extends Object
A LocationGroupEventPropagator.
Author:
Heiko Scherrer
  • 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

      private final String exchangeName
    • locationMapper

      private final LocationMapper locationMapper
    • locationGroupMapper

      private final LocationGroupMapper 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)