|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.configuration.Configuration
public abstract class Configuration
A configuration that provides required, optional, or default properties
to configure DirectoryService.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_INSTANCE_ID
The default ID of DirectoryService that is used
when no instance ID is specified. |
static java.lang.String |
JNDI_KEY
A JNDI environment key that configuration instance is put on. |
| Constructor Summary | |
|---|---|
protected |
Configuration()
Creates a new instance. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.String |
getInstanceId()
Returns the ID of DirectoryService instance to configure. |
protected void |
setInstanceId(java.lang.String instanceId)
Sets the ID of DirectoryService instance to configure. |
static Configuration |
toConfiguration(java.util.Hashtable jndiEnvironment)
Gets Configuration instance from the specified JNDI environment
Hashtable. |
java.util.Hashtable |
toJndiEnvironment()
Converts this configuration to JNDI environment Hashtable. |
void |
validate()
Validates this configuration. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String JNDI_KEY
public static final java.lang.String DEFAULT_INSTANCE_ID
DirectoryService that is used
when no instance ID is specified.
| Constructor Detail |
|---|
protected Configuration()
| Method Detail |
|---|
public static Configuration toConfiguration(java.util.Hashtable jndiEnvironment)
Configuration instance from the specified JNDI environment
Hashtable. If a configuration instance is not present the default
StartupConfiguration is returned and injected into the environment.
ConfigurationException - if the specified environment doesn't
contain the proper configuration instance.public java.lang.String getInstanceId()
DirectoryService instance to configure.
protected void setInstanceId(java.lang.String instanceId)
DirectoryService instance to configure.
public void validate()
ConfigurationException - if this configuration is not validpublic java.util.Hashtable toJndiEnvironment()
Hashtable.
This method simple returns a Hashtable that contains an entry
whose key is JNDI_KEY and whose value is this.
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||