com.caucho.ejb.cfg
Class EjbSessionBean

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

public class EjbSessionBean
extends EjbBean

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
_bean, _jClassLoader, _localHome, _localList, _methodList, _remoteHome, _remoteList
 
Constructor Summary
EjbSessionBean(EjbConfig ejbConfig, java.lang.String ejbModuleName)
          Creates a new session bean configuration.
 
Method Summary
protected  BeanGenerator createBeanGenerator()
          Creates the bean generator for the session bean.
 AbstractServer deployServer(EjbContainer ejbContainer, JavaClassGenerator javaGen)
          Deploys the bean.
 java.lang.String getEJBKind()
          Returns the kind of bean.
 void init()
          Configure initialization.
 void initIntrospect()
          Obtain and apply initialization from annotations.
 boolean isContainerTransaction()
          Returns true if the container handles transactions.
 boolean isStateless()
          Returns true if it's a stateless session bean.
 void setEJBClass(java.lang.Class type)
          Sets the ejb implementation class.
 void setSessionType(java.lang.String type)
          Set true if it's a stateless session bean.
 void setTransactionType(java.lang.String type)
          Set true if the container handles transactions.
 
Methods inherited from class com.caucho.ejb.cfg.EjbBean
addBeanDependency, addBuilderProgram, addBusinessLocal, addBusinessRemote, addDepend, addDependency, addDependency, addDependencyList, addInitProgram, addInterceptor, addMethod, addPostConstruct, addRemoveMethod, assembleBeanMethods, assembleGenerator, classHasMethod, containsInterceptor, createMessageDestinationRef, createMethod, createViews21, error, error, findFirstCreateMethod, findMethod, findMethod, generate, getAroundInvokeMethodName, getBeanDependList, getClassLoader, getClassName, getConfig, getDependList, getEJBClass, getEJBClassName, getEJBClassWrapper, getEjbContainer, getEJBFullClassName, getEJBModuleName, getEJBName, getFilename, getFullImplName, getFullMethodName, getFullMethodName, getInitProgram, getInterceptor, getInterceptors, getInvokeInterceptors, getLine, getLocalHome, getLocalList, getLocation, getMappedName, getMethod, getMethod, getMethod, getMethod, getMethodList, getMethodPattern, getMethods, getRemoteClass, getRemoteHome, getRemoteHomeClass, getRemoteList, getRemoveMethod, getRemoveMethods, getSecurityChain, getServerProgram, getShortClassName, getSkeletonName, getTimeoutMethodName, getTransactionAttribute, getTransactionChain, getTransactionTimeout, hasException, introspect, introspectBean, introspectEJBMethod, isAllowPOJO, isCMP, isCMP1, isEJB3, isEquiv, isMatch, isMatch, loadClass, setAllowPOJO, setAroundInvoke, setAroundInvokeMethodName, setConfigLocation, setContainerTransaction, setEJBClassWrapper, setEJBName, setHome, setInit, setLocal, setLocalHome, setLocalHomeWrapper, setLocalWrapper, setLocation, setMappedName, setRemote, setRemoteHomeWrapper, setRemoteWrapper, setSecurityIdentity, setTransactionTimeout, toString, validateException, validateExceptions, validateExceptions, validateImplMethod, validateMethod, validateMethod, validateMethod, validateNonFinalMethod, validateNonFinalMethod, validateNonFinalMethod, validateNonFinalMethod, validatePublicMethod, 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,
                      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

setEJBClass

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

Overrides:
setEJBClass in class EjbBean
Throws:
ConfigException

isStateless

public boolean isStateless()
Returns true if it's a stateless session bean.


setSessionType

public void setSessionType(java.lang.String type)
                    throws ConfigException
Set true if it's a stateless session bean.

Throws:
ConfigException

isContainerTransaction

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

Overrides:
isContainerTransaction in class EjbBean

setTransactionType

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

Throws:
ConfigException

init

public void init()
          throws ConfigException
Configure initialization.

Overrides:
init in class EjbBean
Throws:
ConfigException

createBeanGenerator

protected BeanGenerator createBeanGenerator()
Creates the bean generator for the session bean.

Overrides:
createBeanGenerator in class EjbBean

initIntrospect

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

Overrides:
initIntrospect in class EjbBean
Throws:
ConfigException

deployServer

public AbstractServer deployServer(EjbContainer ejbContainer,
                                   JavaClassGenerator javaGen)
                            throws java.lang.ClassNotFoundException,
                                   ConfigException
Deploys the bean.

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