org.apache.ldap.server.jndi
Class PartitionConfigBuilder

java.lang.Object
  extended byorg.apache.ldap.server.jndi.PartitionConfigBuilder

public class PartitionConfigBuilder
extends java.lang.Object

A partition configuration builder which produces ContextPartitionConfig objects from various configuration formats, namely Hashtables.

Version:
$Rev$
Author:
Apache Directory Project

Constructor Summary
PartitionConfigBuilder()
           
 
Method Summary
static ContextPartitionConfig getContextPartitionConfig(java.lang.String id, java.util.Hashtable env)
          Extracts properties from a Hashtable and builds a configuration bean for a ContextPartition.
static ContextPartitionConfig[] getContextPartitionConfigs(java.util.Hashtable env)
          Extracts properties from a Hashtable and builds a set of configurations bean for ContextPartitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionConfigBuilder

public PartitionConfigBuilder()
Method Detail

getContextPartitionConfig

public static ContextPartitionConfig getContextPartitionConfig(java.lang.String id,
                                                               java.util.Hashtable env)
                                                        throws javax.naming.NamingException
Extracts properties from a Hashtable and builds a configuration bean for a ContextPartition.

Parameters:
id - the id of the partition to extract configs for
env - the Hastable containing usually JNDI environment settings
Returns:
the extracted configuration object
Throws:
javax.naming.NamingException - if a partition suffix is malformed

getContextPartitionConfigs

public static ContextPartitionConfig[] getContextPartitionConfigs(java.util.Hashtable env)
                                                           throws javax.naming.NamingException
Extracts properties from a Hashtable and builds a set of configurations bean for ContextPartitions.

Parameters:
env - the Hastable containing usually JNDI environment settings
Returns:
all the extracted configuration objects configured
Throws:
javax.naming.NamingException - if a partition suffix is malformed


Copyright © 2002-2005 . All Rights Reserved.