Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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: 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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