Class InMemoryDirectoryServiceFactory

java.lang.Object
org.jboss.as.test.integration.ldap.InMemoryDirectoryServiceFactory
All Implemented Interfaces:
org.apache.directory.server.core.factory.DirectoryServiceFactory

public class InMemoryDirectoryServiceFactory extends Object implements org.apache.directory.server.core.factory.DirectoryServiceFactory
Factory for a fast (mostly in-memory-only) ApacheDS DirectoryService. Use only for tests!!
Author:
Josef Cacek
  • Constructor Details

    • InMemoryDirectoryServiceFactory

      public InMemoryDirectoryServiceFactory()
      Default constructor which creates DefaultDirectoryService instance and configures AvlPartitionFactory as the PartitionFactory implementation.
    • InMemoryDirectoryServiceFactory

      public InMemoryDirectoryServiceFactory(org.apache.directory.server.core.api.DirectoryService directoryService, org.apache.directory.server.core.factory.PartitionFactory partitionFactory)
      Constructor which uses provided DirectoryService and PartitionFactory implementations.
      Parameters:
      directoryService - must be not-null
      partitionFactory - must be not-null
  • Method Details

    • init

      public void init(String name) throws Exception
      Specified by:
      init in interface org.apache.directory.server.core.factory.DirectoryServiceFactory
      Throws:
      Exception
    • getDirectoryService

      public org.apache.directory.server.core.api.DirectoryService getDirectoryService() throws Exception
      Specified by:
      getDirectoryService in interface org.apache.directory.server.core.factory.DirectoryServiceFactory
      Throws:
      Exception
    • getPartitionFactory

      public org.apache.directory.server.core.factory.PartitionFactory getPartitionFactory() throws Exception
      Specified by:
      getPartitionFactory in interface org.apache.directory.server.core.factory.DirectoryServiceFactory
      Throws:
      Exception