toolbox.services.ldap
Class LDAPServiceEnvironment

Package class diagram package LDAPServiceEnvironment
java.lang.Object
  extended by toolbox.services.ldap.LDAPServiceEnvironment
All Implemented Interfaces:
ServiceEnvironment

public class LDAPServiceEnvironment
extends java.lang.Object
implements ServiceEnvironment

ServiceEnvironment implementation to provide access to a toolbox.ldap.LDAPManager instance.


Constructor Summary
LDAPServiceEnvironment()
          Default constructor
 
Method Summary
 void create(java.lang.String name, java.lang.String config)
          Create and set the LDAPManager for this environment.
 void destroy()
          Destroy this environment by destroying the member LDAPManager.
 LDAPManager getLDAPManager()
          Return the member LDAPManager.
 java.lang.String getName()
          Return the name of this environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPServiceEnvironment

public LDAPServiceEnvironment()
Default constructor

Method Detail

create

public void create(java.lang.String name,
                   java.lang.String config)
            throws ServiceException
Create and set the LDAPManager for this environment.

Specified by:
create in interface ServiceEnvironment
Parameters:
name - The name of the environment.
config - The location of the environment configuration.
Throws:
ServiceException - if the environment cannot be created.

getName

public java.lang.String getName()
Return the name of this environment.

Specified by:
getName in interface ServiceEnvironment
Returns:
String containing the name of this environment.

getLDAPManager

public LDAPManager getLDAPManager()
Return the member LDAPManager.

Returns:
LDAPManger instance of this environment.

destroy

public void destroy()
             throws ServiceException
Destroy this environment by destroying the member LDAPManager.

Specified by:
destroy in interface ServiceEnvironment
Throws:
ServiceException - if this environment cannot be destroyed.