org.apache.directory.server.core.factory
Interface DirectoryServiceFactory

All Known Implementing Classes:
DefaultDirectoryServiceFactory

public interface DirectoryServiceFactory

A factory used to generate differently configured DirectoryService objects. Since the DirectoryService itself is what is configured then a factory for these objects acts as a configurator. Tests can provide different factory methods to be used.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Method Summary
 DirectoryService getDirectoryService()
          Gets the directory service.
 PartitionFactory getPartitionFactory()
          Gets the partition factory.
 void init(java.lang.String name)
          Inits the directory service factory.
 

Method Detail

init

void init(java.lang.String name)
          throws java.lang.Exception
Inits the directory service factory.

Parameters:
name - the name
Throws:
java.lang.Exception

getDirectoryService

DirectoryService getDirectoryService()
                                     throws java.lang.Exception
Gets the directory service.

Returns:
the directory service
Throws:
java.lang.Exception

getPartitionFactory

PartitionFactory getPartitionFactory()
                                     throws java.lang.Exception
Gets the partition factory.

Returns:
the partition factory
Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.