Package org.forgerock.openam.audit
Interface AuditEventHandlerFactory
-
- All Known Implementing Classes:
CsvAuditEventHandlerFactory,ElasticsearchAuditEventHandlerFactory,JdbcAuditEventHandlerFactory,JmsAuditEventHandlerFactory,JsonStdoutAuditEventHandlerFactory,SplunkAuditEventHandlerFactory,SyslogAuditEventHandlerFactory
public interface AuditEventHandlerFactoryA factory for creating an audit event handler. Implementations of this interface are required to create an instance ofAuditEventHandler, based on the configuration attributes supplied. Instances ofAuditEventHandlerFactoryare injected with Guice and implementation class names can be configured in the Audit Logging Configuration Service.- Since:
- 13.0.0
- See Also:
AuditEventHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.forgerock.audit.events.handlers.AuditEventHandlercreate(AuditEventHandlerConfiguration configuration)Create an instance ofAuditEventHandler.
-
-
-
Method Detail
-
create
org.forgerock.audit.events.handlers.AuditEventHandler create(AuditEventHandlerConfiguration configuration) throws org.forgerock.audit.AuditException
Create an instance ofAuditEventHandler. This method will be called every time configuration for audit logging in OpenAM has changed. The returned handler will be added to the appropriateAuditService, which will in turn callAuditEventHandler.startup(). If this method returnsnullthen nothing will be added to theAuditService.- Parameters:
configuration- The configuration properties to use when creating the handler.- Returns:
- An instance of
AuditEventHandleror null if this handler is disabled. - Throws:
org.forgerock.audit.AuditException- If an error occurred during creation of the handler.
-
-