Package org.audit4j.integration.spring
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize audit4j when starting spring application context.voiddestroy()voidsetActorSessionAttributeName(String actorSessionAttributeName) Sets the actor session attribute name.voidsetAnnotationTransformer(org.audit4j.core.AnnotationTransformer annotationTransformer) Sets the tranformer for converting events.voidsetCommands(String commands) Sets the commands.voidsetFilters(List<org.audit4j.core.filter.AuditEventFilter> filters) Sets the filters.voidsetHandlers(List<org.audit4j.core.handler.Handler> handlers) Sets the handlers.voidsetJmx(org.audit4j.core.jmx.JMXConfig jmx) Sets the jmx.voidsetLayout(org.audit4j.core.layout.Layout layout) Sets the layout.voidsetMetaData(org.audit4j.core.MetaData metaData) Sets the meta data.voidsetProperties(Map<String, String> properties) Sets the properties.
-
Constructor Details
-
SpringAudit4jConfig
public SpringAudit4jConfig()
-
-
Method Details
-
afterPropertiesSet
Initialize audit4j when starting spring application context.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception- See Also:
-
InitializingBean.afterPropertiesSet()
-
destroy
- Specified by:
destroyin interfaceorg.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
Sets the handlers.- Parameters:
handlers- the new handlers
-
setFilters
Sets the filters.- Parameters:
filters- the new filters
-
setCommands
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
Sets the properties.- Parameters:
properties- the new properties
-
setActorSessionAttributeName
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 leftnulland then the default transformer will be created.- Parameters:
annotationTransformer- the transformer to be used
-