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
ConstructorsConstructorDescriptionDependencyProviderAuditEventHandlerFactory(DependencyProvider dependencyProvider) Construct a new instance. - 
Method Summary
Modifier and TypeMethodDescription<T extends AuditEventHandler>
Tcreate(String name, Class<T> clazz, EventHandlerConfiguration configuration, EventTopicsMetaData eventTopicsMetaData) Create a new AuditEventHandler instance. 
- 
Constructor Details
- 
DependencyProviderAuditEventHandlerFactory
Construct a new instance.- Parameters:
 dependencyProvider- Dependency lookup abstraction for obtaining resources or objects from the product which integrates this AuditEventHandler.
 
 - 
 - 
Method Details
- 
create
public <T extends AuditEventHandler> T create(String name, Class<T> clazz, EventHandlerConfiguration configuration, EventTopicsMetaData eventTopicsMetaData) throws AuditException Description copied from interface:AuditEventHandlerFactoryCreate a new AuditEventHandler instance.- Specified by:
 createin 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.
 
 -