public class javaURLContextFactory extends Object implements ObjectFactory, InitialContextFactory
Important note : This factory MUST be associated with the "java" URL prefix, which can be done by either :
NamingManager.getURLContext(java.lang.String, java.util.Hashtable)
.Modifier and Type | Field and Description |
---|---|
protected static Context |
initialContext
Initial context.
|
static String |
MAIN |
Constructor and Description |
---|
javaURLContextFactory() |
Modifier and Type | Method and Description |
---|---|
Context |
getInitialContext(Hashtable<?,?> environment)
Get a new (writable) initial context.
|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
Crete a new Context's instance.
|
public static final String MAIN
protected static volatile Context initialContext
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws NamingException
getObjectInstance
in interface ObjectFactory
NamingException
public Context getInitialContext(Hashtable<?,?> environment) throws NamingException
getInitialContext
in interface InitialContextFactory
NamingException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.