org.objectweb.easybeans.api.bean
Interface EasyBeansBean

All Superinterfaces:
EasyBeansInjection, EasyBeansLifeCycle, EasyBeansTimedObject
All Known Subinterfaces:
EasyBeansMDB, EasyBeansSB<PoolType>, EasyBeansSFSB, EasyBeansSLSB

public interface EasyBeansBean
extends EasyBeansLifeCycle, EasyBeansInjection, EasyBeansTimedObject

Defines the interface of a bean.

Author:
Florent Benoit

Method Summary
 EZBEJBContext getEasyBeansContext()
          Gets the EJB context associated to this bean.
 Factory getEasyBeansFactory()
          Gets the factory associated to this bean.
 void setEasyBeansContext(EZBEJBContext beanContext)
          Defines the EJB context associated to this bean.
 void setEasyBeansFactory(Factory easyBeansFactory)
          Defines the factory associated to this bean.
 
Methods inherited from interface org.objectweb.easybeans.api.bean.lifecycle.EasyBeansLifeCycle
postConstructEasyBeansLifeCycle, preDestroyEasyBeansLifeCycle
 
Methods inherited from interface org.objectweb.easybeans.api.injection.EasyBeansInjection
injectedByEasyBeans
 
Methods inherited from interface org.objectweb.easybeans.api.bean.timer.EasyBeansTimedObject
timeoutCallByEasyBeans
 

Method Detail

getEasyBeansFactory

Factory getEasyBeansFactory()
Gets the factory associated to this bean.

Returns:
bean's factory

setEasyBeansFactory

void setEasyBeansFactory(Factory easyBeansFactory)
Defines the factory associated to this bean.

Parameters:
easyBeansFactory - the EasyBeans factory that manages this bean.

getEasyBeansContext

EZBEJBContext getEasyBeansContext()
Gets the EJB context associated to this bean.

Returns:
EJB context

setEasyBeansContext

void setEasyBeansContext(EZBEJBContext beanContext)
Defines the EJB context associated to this bean.

Parameters:
beanContext - the session context associated to this bean.