org.apache.naming.java
Class javaURLContextFactory
java.lang.Object
org.apache.naming.java.javaURLContextFactory
- All Implemented Interfaces:
- InitialContextFactory, ObjectFactory
public class javaURLContextFactory
- extends Object
- implements ObjectFactory, InitialContextFactory
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.catalina.util.naming property
to the JNDI properties file
- Setting an environment variable named Context.URL_PKG_PREFIXES with
its value including the org.apache.catalina.util.naming package name.
More detail about this can be found in the JNDI documentation :
NamingManager.getURLContext(java.lang.String, java.util.Hashtable)
.
- Version:
- $Id: javaURLContextFactory.java 1056244 2011-01-07 10:31:59Z markt $
- Author:
- Remy Maucherat
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIN
public static final String MAIN
- See Also:
- Constant Field Values
initialContext
protected static volatile Context initialContext
- Initial context.
javaURLContextFactory
public javaURLContextFactory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws NamingException
- Crete a new Context's instance.
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
NamingException
getInitialContext
public Context getInitialContext(Hashtable<?,?> environment)
throws NamingException
- Get a new (writable) initial context.
- Specified by:
getInitialContext
in interface InitialContextFactory
- Throws:
NamingException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.