Class SpringAudit4jConfig

java.lang.Object
org.audit4j.integration.spring.SpringAudit4jConfig
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class SpringAudit4jConfig extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
The Class SpringAudit4jConfig.
Author:
Janith Bandara
  • Constructor Details

    • SpringAudit4jConfig

      public SpringAudit4jConfig()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Initialize audit4j when starting spring application context.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
      See Also:
      • InitializingBean.afterPropertiesSet()
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
      See Also:
      • DisposableBean.destroy()
    • setLayout

      public void setLayout(org.audit4j.core.layout.Layout layout)
      Sets the layout.
      Parameters:
      layout - the new layout
    • setMetaData

      public void setMetaData(org.audit4j.core.MetaData metaData)
      Sets the meta data.
      Parameters:
      metaData - the new meta data
    • setHandlers

      public void setHandlers(List<org.audit4j.core.handler.Handler> handlers)
      Sets the handlers.
      Parameters:
      handlers - the new handlers
    • setFilters

      public void setFilters(List<org.audit4j.core.filter.AuditEventFilter> filters)
      Sets the filters.
      Parameters:
      filters - the new filters
    • setCommands

      public void setCommands(String commands)
      Sets the commands.
      Parameters:
      commands - the new commands
    • setJmx

      public void setJmx(org.audit4j.core.jmx.JMXConfig jmx)
      Sets the jmx.
      Parameters:
      jmx - the new jmx
    • setProperties

      public void setProperties(Map<String,String> properties)
      Sets the properties.
      Parameters:
      properties - the new properties
    • setActorSessionAttributeName

      public void setActorSessionAttributeName(String actorSessionAttributeName)
      Sets the actor session attribute name.
      Parameters:
      actorSessionAttributeName - the new actor session attribute name
    • setAnnotationTransformer

      public void setAnnotationTransformer(org.audit4j.core.AnnotationTransformer annotationTransformer)
      Sets the tranformer for converting events. May be left null and then the default transformer will be created.
      Parameters:
      annotationTransformer - the transformer to be used