|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.jndi.CoreContextFactory
A server-side provider implementation of a InitialContextFactory. Can be
utilized via JNDI API in the standard fashion:
Hashtable env = new Hashtable();
env.put( Context.PROVIDER_URL, "ou=system" );
env.put(
Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.CoreContextFactory" );
InitialContext initialContext = new InitialContext( env );
InitialContextFactory
Field Summary | |
protected static java.lang.String |
ADMIN
shorthand reference to the admin principal name |
protected static javax.naming.Name |
ADMIN_NAME
shorthand reference to the admin principal distinguished name |
protected boolean |
createMode
whether or not server is started for the first time |
protected static java.lang.String[] |
DEFAULT_SCHEMAS
default schema classes for the SCHEMAS_ENV property if not set |
static java.lang.String |
DEFAULT_WKDIR
default path to working directory if WKDIR_ENV property is not set |
protected GlobalRegistries |
globalRegistries
the registries for system schema objects |
protected java.util.Hashtable |
initialEnv
the initial context environment that fired up the backend subsystem |
protected RootNexus |
nexus
the root nexus |
protected static java.lang.String |
PRINCIPAL
shorthand reference to the authentication principal property |
protected JndiProvider |
provider
The singleton JndiProvider instance |
protected SystemPartition |
system
the system partition used by the context factory |
Constructor Summary | |
CoreContextFactory()
Default constructor that sets the provider of this ServerContextFactory. |
Method Summary | |
protected void |
checkSecuritySettings(java.util.Hashtable env)
Checks to make sure security environment parameters are set correctly. |
javax.naming.Context |
getInitialContext(java.util.Hashtable env)
|
protected void |
initialize()
Kicks off the initialization of the entire system. |
protected boolean |
isAnonymous(java.util.Hashtable env)
Checks to see if an anonymous bind is being attempted. |
protected boolean |
mkdirs(java.lang.String base,
java.lang.String path)
Recursively creates a bunch of directories from a base down to a path. |
protected void |
startUpAppPartitions(java.lang.String eveWkdir)
Starts up all the application partitions that will be attached to naming contexts in the system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String PRINCIPAL
protected static final java.lang.String ADMIN
protected static final javax.naming.Name ADMIN_NAME
public static final java.lang.String DEFAULT_WKDIR
protected static final java.lang.String[] DEFAULT_SCHEMAS
protected JndiProvider provider
protected java.util.Hashtable initialEnv
protected SystemPartition system
protected GlobalRegistries globalRegistries
protected RootNexus nexus
protected boolean createMode
Constructor Detail |
public CoreContextFactory()
Method Detail |
public javax.naming.Context getInitialContext(java.util.Hashtable env) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
javax.naming.NamingException
protected void checkSecuritySettings(java.util.Hashtable env) throws javax.naming.NamingException
javax.naming.NamingException
- if the security settings are not correctly configured.protected boolean isAnonymous(java.util.Hashtable env)
protected void initialize() throws javax.naming.NamingException
javax.naming.NamingException
- if there are problems along the wayprotected void startUpAppPartitions(java.lang.String eveWkdir) throws javax.naming.NamingException
eveWkdir
- the base Eve working directory
javax.naming.NamingException
- if there are problems creating and starting these new application
partitionsprotected boolean mkdirs(java.lang.String base, java.lang.String path)
base
- the base directory to start atpath
- the path to recursively create if we have to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |