org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle.bean
Class StatelessBean

java.lang.Object
  extended by org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle.bean.AbsSessionBean
      extended by org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle.bean.StatelessBean
All Implemented Interfaces:
SessionBeanItf

public class StatelessBean
extends AbsSessionBean
implements SessionBeanItf

Simple class for testing callbacks.

Author:
Florent Benoit

Field Summary
private  int counter
          Counter to be increased by postconstruct and preDestroy.
 
Constructor Summary
StatelessBean()
           
 
Method Summary
 void decrement()
          Decrement the counter.
 int getCounter()
           
 void increment()
          Increment the counter.
 
Methods inherited from class org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle.bean.AbsSessionBean
calledPostConstruct, calledPreDestroy, isPostConstructCalled, isPreDestroyCalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

private int counter
Counter to be increased by postconstruct and preDestroy.

Constructor Detail

StatelessBean

public StatelessBean()
Method Detail

increment

public void increment()
Increment the counter.


decrement

public void decrement()
Decrement the counter.


getCounter

public int getCounter()
Returns:
the value of the internal counter.