org.apache.webbeans.ejb.component
Class OpenEjbBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.component.AbstractInjectionTargetBean<T>
          extended by org.apache.webbeans.ejb.common.component.BaseEjbBean<T>
              extended by org.apache.webbeans.ejb.component.OpenEjbBean<T>
All Implemented Interfaces:
Contextual<T>, Bean<T>, EnterpriseBeanMarker, InjectionTargetBean<T>, InterceptedMarker, OwbBean<T>

public class OpenEjbBean<T>
extends BaseEjbBean<T>

Defines bean contract for the session beans.

Version:
$Rev$ $Date$

Field Summary
 
Fields inherited from class org.apache.webbeans.ejb.common.component.BaseEjbBean
ejbType
 
Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
decorators, inheritedMetaData, interceptorStack
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
OpenEjbBean(Class<T> ejbClassType, SessionBeanType type)
          Creates a new instance of the session bean.
 
Method Summary
 List<Class<?>> getBusinessLocalInterfaces()
           
 org.apache.openejb.DeploymentInfo getDeploymentInfo()
          Returns bean's deployment info.
 String getEjbName()
          Gets ejb name.
protected  T getInstance(CreationalContext<T> creationalContext)
          
 List<Method> getRemoveMethods()
           
 void setDeploymentInfo(org.apache.openejb.DeploymentInfo deploymentInfo)
          Sets session bean's deployment info.
 
Methods inherited from class org.apache.webbeans.ejb.common.component.BaseEjbBean
addDependentSFSB, createComponentInstance, destroyComponentInstance, destroyStatefulSessionBeanInstance, getDependentSFSBForProxy, getEjbType, injectFieldInInterceptor, injectFields, isPassivationCapable, removeDependentSFSB
 
Methods inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createDefaultInstance, createInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInjectionPoints, getInterceptorStack, getLogger, getObservableMethods, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependencies
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.webbeans.component.OwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Constructor Detail

OpenEjbBean

public OpenEjbBean(Class<T> ejbClassType,
                   SessionBeanType type)
Creates a new instance of the session bean.

Parameters:
ejbClassType - ebj class type
Method Detail

setDeploymentInfo

public void setDeploymentInfo(org.apache.openejb.DeploymentInfo deploymentInfo)
Sets session bean's deployment info.

Parameters:
deploymentInfo - deployment info

getDeploymentInfo

public org.apache.openejb.DeploymentInfo getDeploymentInfo()
Returns bean's deployment info.

Returns:
bean's deployment info

getInstance

protected T getInstance(CreationalContext<T> creationalContext)

Specified by:
getInstance in class BaseEjbBean<T>

getEjbName

public String getEjbName()
Gets ejb name.

Overrides:
getEjbName in class BaseEjbBean<T>
Returns:
ejb name

getBusinessLocalInterfaces

public List<Class<?>> getBusinessLocalInterfaces()
Overrides:
getBusinessLocalInterfaces in class BaseEjbBean<T>

getRemoveMethods

public List<Method> getRemoveMethods()
Overrides:
getRemoveMethods in class BaseEjbBean<T>


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.