站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

NamingContextFactory (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.naming
Class NamingContextFactory

java.lang.Object
  extended byorg.jnp.interfaces.NamingContextFactory
      extended byorg.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: 1.3 $
Author:
Scott.Stark@jboss.org
See Also:
NamingContextFactory

Field Summary
static ThreadLocal lastInitialContextEnv
           
 
Constructor Summary
NamingContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable env)
           
 
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
 

Field Detail

lastInitialContextEnv

public static final ThreadLocal lastInitialContextEnv
Constructor Detail

NamingContextFactory

public NamingContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable env)
                          throws NamingException
Throws:
NamingException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.