com.caucho.ejb.cfg
Class EjbSessionBean<X>

java.lang.Object
  extended by com.caucho.config.types.DescriptionGroupConfig
      extended by com.caucho.ejb.cfg.EjbBean<X>
          extended by com.caucho.ejb.cfg.EjbSessionBean<X>
All Implemented Interfaces:
DependencyBean, EnvironmentBean
Direct Known Subclasses:
EjbSingletonBean, EjbStatefulBean, EjbStatelessBean

public class EjbSessionBean<X>
extends EjbBean<X>

Configuration for an ejb entity bean.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.config.types.DescriptionGroupConfig
DescriptionGroupConfig.Icon
 
Field Summary
 
Fields inherited from class com.caucho.ejb.cfg.EjbBean
_beanMethodList, _isContainerTransaction, _jClassLoader, _localList, _methodList, _remoteList
 
Constructor Summary
EjbSessionBean(EjbConfig ejbConfig, AnnotatedType<X> rawAnnType, AnnotatedType<X> annType, java.lang.String ejbModuleName)
          Creates a new session bean configuration.
 
Method Summary
 AbstractSessionManager<X> deployServer(EjbManager ejbContainer, EjbLazyGenerator<X> lazyGenerator)
          Deploys the bean.
protected  void fillClassDefaults()
           
protected  java.lang.String getBeanType()
           
 java.lang.String getEJBKind()
          Returns the kind of bean.
 java.lang.Class<? extends java.lang.annotation.Annotation> getSessionType()
          Gets the session bean type.
 void init()
          Configure initialization.
 void initIntrospect()
          Obtain and apply initialization from annotations.
 boolean isContainerTransaction()
          Returns true if the container handles transactions.
 void setEJBClass(java.lang.Class<X> type)
          Sets the ejb implementation class.
 void setTransactionType(java.lang.String type)
          Set true if the container handles transactions.
 
Methods inherited from class com.caucho.ejb.cfg.EjbBean
addAfterBeginMethod, addAsyncMethod, addBeanDependency, addBeforeCompletionMethod, addBuilderProgram, addBusinessLocal, addBusinessRemote, addConcurrentMethod, addDepend, addDependency, addDependency, addDependencyList, addInitProgram, addInterceptor, addLocal, addLocalType, addLocalWrapper, addMethod, addPostConstruct, addRemote, addRemoteType, addRemoteWrapper, addRemoveMethod, classHasMethod, createBeanGenerator, createDataSource, createEjbLocalRef, createEjbRef, createEnvEntry, createMessageDestinationRef, createMethod, createResourceEnvRef, createResourceRef, error, error, findFirstCreateMethod, findMethod, getAnnotatedType, getBeanDependList, getCdiManager, getClassLoader, getClassName, getConfig, getDependList, getEJBClass, getEJBClassName, getEjbContainer, getEJBFullClassName, getEJBModuleName, getEJBName, getFilename, getFullImplName, getFullMethodName, getFullMethodName, getInitProgram, getInjectionTarget, getJar, getLine, getLocalBean, getLocalList, getLocation, getMappedName, getMethod, getMethod, getMethod, getMethodList, getMethodPattern, getModuleName, getRawAnnotatedType, getRemoteList, getResourceList, getServerProgram, getShortClassName, getSkeletonName, getTimeoutMethodName, getTransactionTimeout, introspect, introspectBean, isAllowPOJO, isCMP, isCMP1, isMatch, loadClass, setAllowPOJO, setAroundInvoke, setConcurrencyManagementType, setConfigLocation, setContainerTransaction, setEJBClassWrapper, setEJBName, setInit, setInjectionTarget, setJar, setLocalBean, setLocation, setMappedName, setSecurityIdentity, setStatefulTimeout, setTransactionTimeout, toString, validateException, validateExceptions, validateExceptions, validateLocal, validateRemote
 
Methods inherited from class com.caucho.config.types.DescriptionGroupConfig
createIcon, getDisplayName, setDescription, setDisplayName, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbSessionBean

public EjbSessionBean(EjbConfig ejbConfig,
                      AnnotatedType<X> rawAnnType,
                      AnnotatedType<X> annType,
                      java.lang.String ejbModuleName)
Creates a new session bean configuration.

Method Detail

getEJBKind

public java.lang.String getEJBKind()
Returns the kind of bean.

Overrides:
getEJBKind in class EjbBean<X>

setEJBClass

public void setEJBClass(java.lang.Class<X> type)
                 throws ConfigException
Sets the ejb implementation class.

Overrides:
setEJBClass in class EjbBean<X>
Throws:
ConfigException

getSessionType

public java.lang.Class<? extends java.lang.annotation.Annotation> getSessionType()
Gets the session bean type.


isContainerTransaction

public boolean isContainerTransaction()
Returns true if the container handles transactions.

Overrides:
isContainerTransaction in class EjbBean<X>

setTransactionType

public void setTransactionType(java.lang.String type)
                        throws ConfigException
Set true if the container handles transactions.

Throws:
ConfigException

init

@PostConstruct
public void init()
          throws ConfigException
Configure initialization.

Overrides:
init in class EjbBean<X>
Throws:
ConfigException

fillClassDefaults

protected void fillClassDefaults()

initIntrospect

public void initIntrospect()
                    throws ConfigException
Obtain and apply initialization from annotations.

Overrides:
initIntrospect in class EjbBean<X>
Throws:
ConfigException

deployServer

public AbstractSessionManager<X> deployServer(EjbManager ejbContainer,
                                              EjbLazyGenerator<X> lazyGenerator)
                                       throws java.lang.ClassNotFoundException,
                                              ConfigException
Deploys the bean.

Overrides:
deployServer in class EjbBean<X>
Throws:
java.lang.ClassNotFoundException
ConfigException

getBeanType

protected java.lang.String getBeanType()
Overrides:
getBeanType in class EjbBean<X>
Returns:
Type of bean (Stateful, Stateless, etc.)