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 Summary
ConstructorsConstructorDescriptionKeyEventAuditHandler(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, List<org.springframework.core.convert.converter.Converter<AuditRequestEvent, AuditEvent>> converters, org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
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
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<AuditRequestEvent>
-