org.apache.directory.server.config
Class ConfigPartitionReader

java.lang.Object
  extended by org.apache.directory.server.config.ConfigPartitionReader

public class ConfigPartitionReader
extends java.lang.Object

A class used for reading the configuration present in a Partition and instantiate the necessary objects like DirectoryService, Interceptors etc.

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

Constructor Summary
ConfigPartitionReader(LdifPartition configPartition)
          Creates a new instance of ConfigPartitionReader.
 
Method Summary
 DirectoryService getDirectoryService()
          instantiates a DirectoryService based on the configuration present in the partition
 DnsServer getDnsServer()
           
 HttpServer getHttpServer()
           
 KdcServer getKdcServer()
           
 LdapServer getLdapServer()
          reads the LDAP server configuration and instantiates without setting a DirectoryService
 NtpServer getNtpServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigPartitionReader

public ConfigPartitionReader(LdifPartition configPartition)
Creates a new instance of ConfigPartitionReader.

Parameters:
configPartition - the non null config partition
Method Detail

getLdapServer

public LdapServer getLdapServer()
                         throws java.lang.Exception
reads the LDAP server configuration and instantiates without setting a DirectoryService

Returns:
the LdapServer instance without a DirectoryService
Throws:
java.lang.Exception

getKdcServer

public KdcServer getKdcServer()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getDnsServer

public DnsServer getDnsServer()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getNtpServer

public NtpServer getNtpServer()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getHttpServer

public HttpServer getHttpServer()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getDirectoryService

public DirectoryService getDirectoryService()
                                     throws java.lang.Exception
instantiates a DirectoryService based on the configuration present in the partition

Throws:
java.lang.Exception


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