org.apache.ldap.server.jndi
Class ServerContextFactory

java.lang.Object
  extended byorg.apache.ldap.server.jndi.CoreContextFactory
      extended byorg.apache.ldap.server.jndi.ServerContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class ServerContextFactory
extends org.apache.ldap.server.jndi.CoreContextFactory

Adds additional bootstrapping for server socket listeners when firing up the server.

Version:
$Rev: 168482 $
Author:
Apache Directory Project
See Also:
InitialContextFactory

Field Summary
 
Fields inherited from class org.apache.ldap.server.jndi.CoreContextFactory
ADMIN, ADMIN_NAME, createMode, DEFAULT_SCHEMAS, DEFAULT_WKDIR, globalRegistries, initialEnv, nexus, PRINCIPAL, provider, system
 
Constructor Summary
ServerContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
          Checks first for a shutdown operation and if so stops the server.
 
Methods inherited from class org.apache.ldap.server.jndi.CoreContextFactory
checkSecuritySettings, initialize, isAnonymous, mkdirs, startUpAppPartitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerContextFactory

public ServerContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Checks first for a shutdown operation and if so stops the server. Otherwise it initializes the networking subsystem starting up the mina registery and other protocol provider services if enabled including the LDAP provider.

Parameters:
env - the JNDI environment parameters
Returns:
the new LDAP context to be wrapped by InitialContext
Throws:
javax.naming.NamingException - if there are problems starting or stopping the server


Copyright © 2003-2005 . All Rights Reserved.