Package org.apache.naming.java
Class javaURLContextFactory
java.lang.Object
org.apache.naming.java.javaURLContextFactory
- All Implemented Interfaces:
- InitialContextFactory,- ObjectFactory
Context factory for the "java:" namespace.
 
Important note : This factory MUST be associated with the "java" URL prefix, which can be done by either :
- Adding a java.naming.factory.url.pkgs=org.apache.naming property to the JNDI properties file
- Setting an environment variable named Context.URL_PKG_PREFIXES with
 its value including the org.apache.naming package name.
 More detail about this can be found in the JNDI documentation :
 NamingManager.getURLContext(String, java.util.Hashtable).
- Author:
- Remy Maucherat
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetInitialContext(Hashtable<?, ?> environment) Get a new (writable) initial context.getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Crete a new Context's instance.
- 
Field Details- 
MAIN- See Also:
 
- 
initialContextInitial context.
 
- 
- 
Constructor Details- 
javaURLContextFactorypublic javaURLContextFactory()
 
- 
- 
Method Details- 
getObjectInstancepublic Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws NamingExceptionCrete a new Context's instance.- Specified by:
- getObjectInstancein interface- ObjectFactory
- Throws:
- NamingException
 
- 
getInitialContextGet a new (writable) initial context.- Specified by:
- getInitialContextin interface- InitialContextFactory
- Throws:
- NamingException
 
 
-