org.jboss.naming
Class ENCFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCFactory
public ENCFactory()
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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.