org.jboss.ejb3
Interface Pool

All Known Implementing Classes:
AbstractPool, StrictMaxPool, ThreadlocalPool

public interface Pool

Minimally a pool acts as a factory for a bean. It will handle callbacks to ejbCreate and ejbRemove as well.

Version:
$Revision: 1.5.2.4 $
Author:
Bill Burke

Method Summary
 BeanContext get()
          Creates if no object is available in pool.
 BeanContext get(Class[] initTypes, Object[] initValues)
           
 void initialize(Container container, Class contextClass, Class beanClass, int maxSize, long timeout)
           
 void release(BeanContext obj)
          Put bean back in pool
 void remove(BeanContext obj)
          Destroy bean.
 void setInjectors(Injector[] injectors)
           
 

Method Detail

get

BeanContext get()
Creates if no object is available in pool. ejbCreate will be called if created


get

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

release

void release(BeanContext obj)
Put bean back in pool


remove

void remove(BeanContext obj)
Destroy bean. ejbRemove callback is executed


setInjectors

void setInjectors(Injector[] injectors)

initialize

void initialize(Container container,
                Class contextClass,
                Class beanClass,
                int maxSize,
                long timeout)


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