org.jboss.naming
Class ENCFactory

java.lang.Object
  extended by org.jboss.naming.ENCFactory
All Implemented Interfaces:
ObjectFactory

public class ENCFactory
extends Object
implements ObjectFactory

Implementation of "java:comp" namespace factory. The context is associated with the thread class loader.

Version:
$Revision: 76103 $
Author:
Rickard Oberg, Scott Stark, Bill Burke

Constructor Summary
ENCFactory()
           
 
Method Summary
protected  Context createContext(Hashtable environment)
           
protected  NamingServer createServer()
          Util method for possible override.
static Object getCurrentId()
           
static ConcurrentHashMap<Object,Context> getEncById()
           
static List<Object> getIdStack()
           
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
           
static ClassLoader getTopClassLoader()
           
static Object popContextId()
           
static void pushContextId(Object id)
           
static void setTopClassLoader(ClassLoader topLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ENCFactory

public ENCFactory()
Method Detail

getIdStack

public static List<Object> getIdStack()

getEncById

public static ConcurrentHashMap<Object,Context> getEncById()

pushContextId

public static void pushContextId(Object id)

popContextId

public static Object popContextId()

getCurrentId

public static Object getCurrentId()

setTopClassLoader

public static void setTopClassLoader(ClassLoader topLoader)

getTopClassLoader

public static ClassLoader getTopClassLoader()

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

createServer

protected NamingServer createServer()
                             throws NamingException
Util method for possible override.

Returns:
new naming server instance
Throws:
NamingException - for any error

createContext

protected Context createContext(Hashtable environment)
                         throws NamingException
Throws:
NamingException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.