org.jboss.naming
Class NamingContextFactory

java.lang.Object
  extended byorg.jnp.interfaces.NamingContextFactory (src) 
      extended byorg.jboss.naming.NamingContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory, javax.naming.spi.ObjectFactory

public class NamingContextFactory
extends NamingContextFactory (src)

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.

See Also:
NamingContextFactory (src)

Field Summary
static java.lang.ThreadLocal lastInitialContextEnv
           
 
Constructor Summary
NamingContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
           
 
Methods inherited from class org.jnp.interfaces.NamingContextFactory (src)
getObjectInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastInitialContextEnv

public static final java.lang.ThreadLocal lastInitialContextEnv
Constructor Detail

NamingContextFactory

public NamingContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Overrides:
getInitialContext in class NamingContextFactory (src)
Throws:
javax.naming.NamingException