org.ow2.easybeans.examples.pool
Class PoolAnnotationBean

java.lang.Object
  extended by org.ow2.easybeans.examples.pool.AbsBean
      extended by org.ow2.easybeans.examples.pool.AbsSessionBean
          extended by org.ow2.easybeans.examples.pool.PoolAnnotationBean
All Implemented Interfaces:
BusinessInterface

public class PoolAnnotationBean
extends AbsSessionBean

Pool of this bean is defined with an annotation.

Author:
Florent BENOIT

Field Summary
static int MAX_SIZE
          Maximum size to use for the pool.
 
Fields inherited from interface org.ow2.easybeans.examples.pool.BusinessInterface
MAX_INSTANCE_ANNOTATION, MAX_INSTANCE_XML
 
Constructor Summary
PoolAnnotationBean()
          Constructor.
 
Method Summary
 int getInstances()
           
 
Methods inherited from class org.ow2.easybeans.examples.pool.AbsBean
dummyWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.easybeans.examples.pool.BusinessInterface
dummyWork
 

Field Detail

MAX_SIZE

public static final int MAX_SIZE
Maximum size to use for the pool.

See Also:
Constant Field Values
Constructor Detail

PoolAnnotationBean

public PoolAnnotationBean()
Constructor.

Method Detail

getInstances

public int getInstances()
Specified by:
getInstances in interface BusinessInterface
Specified by:
getInstances in class AbsBean
Returns:
the number of instances built.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.