Class KeyEventAuditHandler

java.lang.Object
com.broadleafcommerce.common.audit.KeyEventAuditHandler
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<AuditRequestEvent>

public class KeyEventAuditHandler extends Object implements org.springframework.context.ApplicationListener<AuditRequestEvent>
Async handler responsible for converting AuditRequestEvent instances into AuditEvent instances for subsequent consumption by the audit processing system. Various Converter implementations will be available for determining if a conversion should be made, and how much detail to include. At the end of processing, the AuditEvent is fired as a standard Spring ApplicationEvent.
  • Constructor Details

    • KeyEventAuditHandler

      public KeyEventAuditHandler(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, List<org.springframework.core.convert.converter.Converter<AuditRequestEvent,AuditEvent>> converters, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(AuditRequestEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<AuditRequestEvent>