org.apache.ldap.server.jndi
Class PartitionConfigBuilder
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionConfigBuilder
public PartitionConfigBuilder()
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 forenv
- 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