org.objectweb.easybeans.api.bean.lifecycle
Interface EasyBeansLifeCycle

All Superinterfaces:
EasyBeansDependencyInjection
All Known Subinterfaces:
EasyBeansBean, EasyBeansMDB, EasyBeansMDBLifeCycle, EasyBeansSB, EasyBeansSBLifeCycle, EasyBeansSFSB, EasyBeansSFSBLifeCycle, EasyBeansSLSB, EasyBeansSLSBLifeCycle

public interface EasyBeansLifeCycle
extends EasyBeansDependencyInjection

Defines the lifecycle of an enterprise bean. These classes support the dependency injection.

Author:
Florent Benoit

Method Summary
 void postConstructEasyBeansLifeCycle()
          The PostConstruct callback occurs before the first business method invocation on the bean.
This is at a point after which any dependency injection has been performed by the container.
The PostConstruct callback method executes in an unspecified transaction and security context.
 void preDestroyEasyBeansLifeCycle()
          The PreDestroy callback notification signals that the instance is in the process of being removed by the container.
In the PreDestroy callback method, the instance typically releases the resources that it has been holding.
The PreDestroy callback method executes in an unspecified transaction and security context.
 

Method Detail

postConstructEasyBeansLifeCycle

void postConstructEasyBeansLifeCycle()
The PostConstruct callback occurs before the first business method invocation on the bean.
This is at a point after which any dependency injection has been performed by the container.
The PostConstruct callback method executes in an unspecified transaction and security context.


preDestroyEasyBeansLifeCycle

void preDestroyEasyBeansLifeCycle()
The PreDestroy callback notification signals that the instance is in the process of being removed by the container.
In the PreDestroy callback method, the instance typically releases the resources that it has been holding.
The PreDestroy callback method executes in an unspecified transaction and security context.