org.jboss.naming
public class: NamingContextFactory [javadoc |
source]
java.lang.Object
org.jnp.interfaces.NamingContextFactory
org.jboss.naming.NamingContextFactory
Direct Known Subclasses:
JndiLoginInitialContextFactory
A variation of the org.jnp.interfaces.NamingContextFactory
InitialContextFactory implementation that maintains the last envrionment
used to create an InitialContext in a thread local variable for
access within the scope of the InitialContext. This can be used by
the EJB handles to save the context that should be used to perform the
looks when the handle is restored.
| Field Summary |
|---|
| public static final ThreadLocal | lastInitialContextEnv | |
| Method from org.jboss.naming.NamingContextFactory Detail: |
public Context getInitialContext(Hashtable env) throws NamingException {
// InitialContextFactory implementation --------------------------
lastInitialContextEnv.set(env);
return super.getInitialContext(env);
}
|