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 Details

    • 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 Details

    • 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 interface AuditEventHandlerFactory
      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.