Class DependencyProviderAuditEventHandlerFactory
- java.lang.Object
-
- org.forgerock.audit.events.handlers.DependencyProviderAuditEventHandlerFactory
-
- All Implemented Interfaces:
AuditEventHandlerFactory
public class DependencyProviderAuditEventHandlerFactory extends Object implements AuditEventHandlerFactory
AuditEventFactory capable of performing construction injection by resolving dependencies using a DependencyProvider.
-
-
Constructor Summary
Constructors Constructor Description DependencyProviderAuditEventHandlerFactory(DependencyProvider dependencyProvider)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends AuditEventHandler>
Tcreate(String name, Class<T> clazz, EventHandlerConfiguration configuration, EventTopicsMetaData eventTopicsMetaData)
Create a new AuditEventHandler instance.
-
-
-
Constructor Detail
-
DependencyProviderAuditEventHandlerFactory
public DependencyProviderAuditEventHandlerFactory(DependencyProvider dependencyProvider)
Construct a new instance.- Parameters:
dependencyProvider
- Dependency lookup abstraction for obtaining resources or objects from the product which integrates this AuditEventHandler.
-
-
Method Detail
-
create
public <T extends AuditEventHandler> T create(String name, Class<T> clazz, EventHandlerConfiguration configuration, EventTopicsMetaData eventTopicsMetaData) throws AuditException
Description copied from interface:AuditEventHandlerFactory
Create a new AuditEventHandler instance.- Specified by:
create
in interfaceAuditEventHandlerFactory
- Type Parameters:
T
- The type of the handler.- Parameters:
name
- The name of the AuditEventHandler object.clazz
- The type of AuditEventHandler to create.configuration
- Configuration parameters that can be adjusted by system administrators.eventTopicsMetaData
- Provides meta-data describing the audit event topics this AuditEventHandler may have to handle.- Returns:
- The handler instance.
- Throws:
AuditException
- If the required handler could not be constructed for any reason.
-
-