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 | initialContextInitial 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 ObjectFactoryNamingExceptionpublic Context getInitialContext(Hashtable<?,?> environment) throws NamingException
getInitialContext in interface InitialContextFactoryNamingExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.