com.caucho.server.http
Class JndiFactory
java.lang.Object
|
+--com.caucho.server.http.JndiFactory
- All Implemented Interfaces:
- javax.naming.spi.InitialContextFactory
- public class JndiFactory
- extends java.lang.Object
- implements javax.naming.spi.InitialContextFactory
Returns the JNDI context for the current classloader. Since each
thread will normally have its own current class loader, the
actual JNDI context is stored in the contextClassLoader.
Method Summary |
javax.naming.Context |
getInitialContext(java.util.Hashtable environment)
Returns the initial context for the current thread. |
static javax.naming.Context |
initContext(RegistryNode registry,
com.caucho.server.http.Application application,
java.lang.ClassLoader loader,
java.util.ArrayList dbPools,
javax.naming.Context parentContext)
|
static void |
setThreadJndi(javax.naming.Context context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiFactory
public JndiFactory()
setThreadJndi
public static void setThreadJndi(javax.naming.Context context)
getInitialContext
public javax.naming.Context getInitialContext(java.util.Hashtable environment)
throws javax.naming.NamingException
- Returns the initial context for the current thread.
- Specified by:
getInitialContext
in interface javax.naming.spi.InitialContextFactory
initContext
public static javax.naming.Context initContext(RegistryNode registry,
com.caucho.server.http.Application application,
java.lang.ClassLoader loader,
java.util.ArrayList dbPools,
javax.naming.Context parentContext)
throws java.lang.Exception