org.jboss.ejb3
Class ThreadLocalENCFactory

java.lang.Object
  extended by org.jboss.ejb3.ThreadLocalENCFactory
All Implemented Interfaces:
ObjectFactory

public class ThreadLocalENCFactory
extends Object
implements ObjectFactory

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

Version:
$Revision: 1.2.2.4 $
Author:
Bill Burke

Constructor Summary
ThreadLocalENCFactory()
           
 
Method Summary
static Context create(Context parent)
           
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
           
static void pop()
           
static void push(Context ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalENCFactory

public ThreadLocalENCFactory()
Method Detail

create

public static Context create(Context parent)
                      throws Exception
Throws:
Exception

push

public static void push(Context ctx)

pop

public static void pop()

getObjectInstance

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


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