org.jboss.naming
Class NamingContextFactory
java.lang.Object
org.jnp.interfaces.NamingContextFactory
org.jboss.naming.NamingContextFactory
- All Implemented Interfaces:
- InitialContextFactory, ObjectFactory
public class NamingContextFactory
- extends org.jnp.interfaces.NamingContextFactory
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.
- Version:
- $Revision: 57209 $
- Author:
- Scott.Stark@jboss.org
- See Also:
NamingContextFactory
Methods inherited from class org.jnp.interfaces.NamingContextFactory |
getObjectInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastInitialContextEnv
public static final ThreadLocal lastInitialContextEnv
NamingContextFactory
public NamingContextFactory()
getInitialContext
public Context getInitialContext(Hashtable env)
throws NamingException
- Specified by:
getInitialContext
in interface InitialContextFactory
- Overrides:
getInitialContext
in class org.jnp.interfaces.NamingContextFactory
- Throws:
NamingException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.