org.apache.directory.server.core.factory
Class DefaultDirectoryServiceFactory

java.lang.Object
  extended by org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory
All Implemented Interfaces:
DirectoryServiceFactory

public class DefaultDirectoryServiceFactory
extends java.lang.Object
implements DirectoryServiceFactory

A Default factory for DirectoryService.

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

Field Summary
static DirectoryServiceFactory DEFAULT
          The default factory returns stock instances of a directory service with smart defaults
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final DirectoryServiceFactory DEFAULT
The default factory returns stock instances of a directory service with smart defaults

Method Detail

init

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

Specified by:
init in interface DirectoryServiceFactory
Parameters:
name - the name
Throws:
java.lang.Exception

getDirectoryService

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

Specified by:
getDirectoryService in interface DirectoryServiceFactory
Returns:
the directory service
Throws:
java.lang.Exception

getPartitionFactory

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

Specified by:
getPartitionFactory in interface DirectoryServiceFactory
Returns:
the partition factory
Throws:
java.lang.Exception


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