org.jboss.ejb3
Class ThreadlocalPool

java.lang.Object
  extended by org.jboss.ejb3.AbstractPool
      extended by org.jboss.ejb3.ThreadlocalPool
All Implemented Interfaces:
Pool

public class ThreadlocalPool
extends AbstractPool

Pools EJBs within a ThreadLocal.

Version:
$Revision: 1.3.2.4 $
Author:
Bill Burke

Field Summary
protected  ThreadLocal pool
           
 
Fields inherited from class org.jboss.ejb3.AbstractPool
beanClass, container, contextClass, injectors
 
Constructor Summary
ThreadlocalPool()
           
 
Method Summary
 BeanContext get()
          Creates if no object is available in pool.
 BeanContext get(Class[] initTypes, Object[] initValues)
           
 void release(BeanContext ctx)
          Put bean back in pool
 
Methods inherited from class org.jboss.ejb3.AbstractPool
create, create, initialize, remove, setInjectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

protected ThreadLocal pool
Constructor Detail

ThreadlocalPool

public ThreadlocalPool()
Method Detail

get

public BeanContext get()
Description copied from interface: Pool
Creates if no object is available in pool. ejbCreate will be called if created


get

public BeanContext get(Class[] initTypes,
                       Object[] initValues)

release

public void release(BeanContext ctx)
Description copied from interface: Pool
Put bean back in pool



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