|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.jndi.ContextFactoryService
Provides JNDI service to AbstractContextFactory
.
Constructor Summary | |
ContextFactoryService()
|
Method Summary | |
static java.util.Set |
getAllInstances()
Returns all instances of instantiated ContextFactoryService . |
abstract ContextFactoryConfiguration |
getConfiguration()
Returns the configuration of this service. |
static ContextFactoryService |
getInstance()
Returns the default instance. |
static ContextFactoryService |
getInstance(java.lang.String instanceId)
Returns ContextFactoryService with the specified instance ID. |
abstract javax.naming.Context |
getJndiContext(java.lang.String baseName)
Returns an anonymous JNDI Context with the specified baseName |
abstract javax.naming.Context |
getJndiContext(java.lang.String principal,
byte[] credential,
java.lang.String authentication,
java.lang.String baseName)
Returns a JNDI Context with the specified authentication information
(principal, credential, and authentication) and
baseName. |
abstract boolean |
isStarted()
Returns true if this service is started. |
abstract void |
shutdown()
Shuts down this service. |
abstract void |
startup(ContextFactoryServiceListener listener,
java.util.Hashtable environment)
Starts up this service. |
abstract void |
sync()
Calls ContextPartition.sync() for all registered ContextPartition s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextFactoryService()
Method Detail |
public static ContextFactoryService getInstance()
public static ContextFactoryService getInstance(java.lang.String instanceId)
ContextFactoryService
with the specified instance ID.
public static java.util.Set getAllInstances()
ContextFactoryService
.
public abstract void startup(ContextFactoryServiceListener listener, java.util.Hashtable environment) throws javax.naming.NamingException
listener
- a listener that listens to the lifecycle of this serviceenvironment
- JNDI InitialContext
environment
javax.naming.NamingException
- if failed to start uppublic abstract void shutdown() throws javax.naming.NamingException
javax.naming.NamingException
- if failed to shut downpublic abstract void sync() throws javax.naming.NamingException
ContextPartition.sync()
for all registered ContextPartition
s.
javax.naming.NamingException
- if synchronization failedpublic abstract boolean isStarted()
public abstract ContextFactoryConfiguration getConfiguration()
public abstract javax.naming.Context getJndiContext(java.lang.String baseName) throws javax.naming.NamingException
Context
with the specified baseName
javax.naming.NamingException
- if failed to create a contextpublic abstract javax.naming.Context getJndiContext(java.lang.String principal, byte[] credential, java.lang.String authentication, java.lang.String baseName) throws javax.naming.NamingException
Context
with the specified authentication information
(principal, credential, and authentication) and
baseName.
principal
- Context.SECURITY_PRINCIPAL
valuecredential
- Context.SECURITY_CREDENTIALS
valueauthentication
- Context.SECURITY_AUTHENTICATION
value
javax.naming.NamingException
- if failed to create a context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |