Package org.apache.openejb.jee
Class SessionBean
- java.lang.Object
-
- org.apache.openejb.jee.SessionBean
-
- All Implemented Interfaces:
EnterpriseBean,Invokable,JndiConsumer,Lifecycle,RemoteBean,Session,TimerConsumer
- Direct Known Subclasses:
ManagedBean,SingletonBean,StatefulBean,StatelessBean
public class SessionBean extends Object implements RemoteBean, Session, TimerConsumer
ejb-jar_3_1.xsdJava class for session-beanType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="session-beanType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/> <element name="ejb-name" type="{http://java.sun.com/xml/ns/javaee}ejb-nameType"/> <element name="mapped-name" type="{http://java.sun.com/xml/ns/javaee}xsdStringType" minOccurs="0"/> <element name="home" type="{http://java.sun.com/xml/ns/javaee}homeType" minOccurs="0"/> <element name="remote" type="{http://java.sun.com/xml/ns/javaee}remoteType" minOccurs="0"/> <element name="local-home" type="{http://java.sun.com/xml/ns/javaee}local-homeType" minOccurs="0"/> <element name="local" type="{http://java.sun.com/xml/ns/javaee}localType" minOccurs="0"/> <element name="business-local" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" maxOccurs="unbounded" minOccurs="0"/> <element name="business-remote" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" maxOccurs="unbounded" minOccurs="0"/> <element name="local-bean" type="{http://java.sun.com/xml/ns/javaee}emptyType" minOccurs="0"/> <element name="service-endpoint" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/> <element name="ejb-class" type="{http://java.sun.com/xml/ns/javaee}ejb-classType" minOccurs="0"/> <element name="session-type" type="{http://java.sun.com/xml/ns/javaee}session-typeType" minOccurs="0"/> <element name="stateful-timeout" type="{http://java.sun.com/xml/ns/javaee}stateful-timeoutType" minOccurs="0"/> <element name="timeout-method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/> <element name="timer" type="{http://java.sun.com/xml/ns/javaee}timerType" maxOccurs="unbounded" minOccurs="0"/> <element name="init-on-startup" type="{http://java.sun.com/xml/ns/javaee}true-falseType" minOccurs="0"/> <element name="concurrency-management-type" type="{http://java.sun.com/xml/ns/javaee}concurrency-management-typeType" minOccurs="0"/> <element name="concurrent-method" type="{http://java.sun.com/xml/ns/javaee}concurrent-methodType" maxOccurs="unbounded" minOccurs="0"/> <element name="depends-on" type="{http://java.sun.com/xml/ns/javaee}depends-onType" minOccurs="0"/> <element name="init-method" type="{http://java.sun.com/xml/ns/javaee}init-methodType" maxOccurs="unbounded" minOccurs="0"/> <element name="remove-method" type="{http://java.sun.com/xml/ns/javaee}remove-methodType" maxOccurs="unbounded" minOccurs="0"/> <element name="async-method" type="{http://java.sun.com/xml/ns/javaee}async-methodType" maxOccurs="unbounded" minOccurs="0"/> <element name="transaction-type" type="{http://java.sun.com/xml/ns/javaee}transaction-typeType" minOccurs="0"/> <element name="after-begin-method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/> <element name="before-completion-method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/> <element name="after-completion-method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/> <element name="around-invoke" type="{http://java.sun.com/xml/ns/javaee}around-invokeType" maxOccurs="unbounded" minOccurs="0"/> <element name="around-timeout" type="{http://java.sun.com/xml/ns/javaee}around-timeoutType" maxOccurs="unbounded" minOccurs="0"/> <group ref="{http://java.sun.com/xml/ns/javaee}jndiEnvironmentRefsGroup"/> <element name="post-activate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/> <element name="pre-passivate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/> <element name="security-role-ref" type="{http://java.sun.com/xml/ns/javaee}security-role-refType" maxOccurs="unbounded" minOccurs="0"/> <element name="security-identity" type="{http://java.sun.com/xml/ns/javaee}security-identityType" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SessionBean()SessionBean(String ejbName, String ejbClass, SessionType sessionType)
-
Method Summary
-
-
-
Field Detail
-
description
protected TextMap description
-
displayName
protected TextMap displayName
-
icon
protected LocalCollection<Icon> icon
-
ejbName
protected String ejbName
-
mappedName
protected String mappedName
-
home
protected String home
-
remote
protected String remote
-
localHome
protected String localHome
-
local
protected String local
-
businessLocal
protected LinkedHashSet<String> businessLocal
-
businessRemote
protected LinkedHashSet<String> businessRemote
-
localBean
protected Empty localBean
-
serviceEndpoint
protected String serviceEndpoint
-
ejbClass
protected String ejbClass
-
sessionType
protected SessionType sessionType
-
statefulTimeout
protected Timeout statefulTimeout
-
timeoutMethod
protected NamedMethod timeoutMethod
-
initOnStartup
protected Boolean initOnStartup
-
passivationCapable
protected Boolean passivationCapable
-
concurrencyManagementType
protected ConcurrencyManagementType concurrencyManagementType
-
concurrentMethod
protected List<ConcurrentMethod> concurrentMethod
-
initMethod
protected List<InitMethod> initMethod
-
removeMethod
protected List<RemoveMethod> removeMethod
-
asyncMethod
protected List<AsyncMethod> asyncMethod
-
transactionType
protected TransactionType transactionType
-
afterBeginMethod
protected NamedMethod afterBeginMethod
-
beforeCompletionMethod
protected NamedMethod beforeCompletionMethod
-
afterCompletionMethod
protected NamedMethod afterCompletionMethod
-
aroundInvoke
protected List<AroundInvoke> aroundInvoke
-
aroundTimeout
protected List<AroundTimeout> aroundTimeout
-
envEntry
protected KeyedCollection<String,EnvEntry> envEntry
-
ejbRef
protected KeyedCollection<String,EjbRef> ejbRef
-
ejbLocalRef
protected KeyedCollection<String,EjbLocalRef> ejbLocalRef
-
serviceRef
protected KeyedCollection<String,ServiceRef> serviceRef
-
resourceRef
protected KeyedCollection<String,ResourceRef> resourceRef
-
resourceEnvRef
protected KeyedCollection<String,ResourceEnvRef> resourceEnvRef
-
messageDestinationRef
protected KeyedCollection<String,MessageDestinationRef> messageDestinationRef
-
persistenceContextRef
protected KeyedCollection<String,PersistenceContextRef> persistenceContextRef
-
persistenceUnitRef
protected KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef
-
postConstruct
protected List<LifecycleCallback> postConstruct
-
preDestroy
protected List<LifecycleCallback> preDestroy
-
dataSource
protected KeyedCollection<String,DataSource> dataSource
-
jmsConnectionFactories
protected KeyedCollection<String,JMSConnectionFactory> jmsConnectionFactories
-
jmsDestinations
protected KeyedCollection<String,JMSDestination> jmsDestinations
-
postActivate
protected List<LifecycleCallback> postActivate
-
prePassivate
protected List<LifecycleCallback> prePassivate
-
securityRoleRef
protected List<SecurityRoleRef> securityRoleRef
-
securityIdentity
protected SecurityIdentity securityIdentity
-
id
protected String id
-
-
Constructor Detail
-
SessionBean
public SessionBean()
-
SessionBean
public SessionBean(String ejbName, String ejbClass, SessionType sessionType)
-
-
Method Detail
-
getJndiConsumerName
public String getJndiConsumerName()
- Specified by:
getJndiConsumerNamein interfaceJndiConsumer
-
getDescriptions
public Text[] getDescriptions()
-
setDescriptions
public void setDescriptions(Text[] text)
-
getDescription
public String getDescription()
-
getDisplayNames
public Text[] getDisplayNames()
-
setDisplayNames
public void setDisplayNames(Text[] text)
-
getDisplayName
public String getDisplayName()
-
getIcons
public Collection<Icon> getIcons()
-
getIcon
public Icon getIcon()
-
getEjbName
public String getEjbName()
- Specified by:
getEjbNamein interfaceEnterpriseBean
-
setEjbName
public void setEjbName(String value)
The ejb-nameType specifies an enterprise bean's name. It is used by ejb-name elements. This name is assigned by the ejb-jar file producer to name the enterprise bean in the ejb-jar file's deployment descriptor. The name must be unique among the names of the enterprise beans in the same ejb-jar file. There is no architected relationship between the used ejb-name in the deployment descriptor and the JNDI name that the Deployer will assign to the enterprise bean's home. The name for an entity bean must conform to the lexical rules for an NMTOKEN. Example:EmployeeService - Specified by:
setEjbNamein interfaceEnterpriseBean
-
getMappedName
public String getMappedName()
- Specified by:
getMappedNamein interfaceEnterpriseBean
-
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedNamein interfaceEnterpriseBean
-
getHome
public String getHome()
- Specified by:
getHomein interfaceRemoteBean
-
setHome
public void setHome(String value)
- Specified by:
setHomein interfaceRemoteBean
-
getRemote
public String getRemote()
- Specified by:
getRemotein interfaceRemoteBean
-
setRemote
public void setRemote(String value)
- Specified by:
setRemotein interfaceRemoteBean
-
getLocalHome
public String getLocalHome()
- Specified by:
getLocalHomein interfaceRemoteBean
-
setLocalHome
public void setLocalHome(String value)
- Specified by:
setLocalHomein interfaceRemoteBean
-
getLocal
public String getLocal()
- Specified by:
getLocalin interfaceRemoteBean
-
setLocal
public void setLocal(String value)
- Specified by:
setLocalin interfaceRemoteBean
-
getBusinessLocal
public Collection<String> getBusinessLocal()
- Specified by:
getBusinessLocalin interfaceRemoteBean
-
addBusinessLocal
public void addBusinessLocal(String businessLocal)
-
addBusinessLocal
public void addBusinessLocal(Class businessLocal)
-
getBusinessRemote
public Collection<String> getBusinessRemote()
- Specified by:
getBusinessRemotein interfaceRemoteBean
-
addBusinessRemote
public void addBusinessRemote(String businessRemote)
-
addBusinessRemote
public void addBusinessRemote(Class businessRemote)
-
getLocalBean
public Empty getLocalBean()
-
setLocalBean
public void setLocalBean(Empty localBean)
-
getServiceEndpoint
public String getServiceEndpoint()
-
setServiceEndpoint
public void setServiceEndpoint(String value)
-
getEjbClass
public String getEjbClass()
- Specified by:
getEjbClassin interfaceEnterpriseBean
-
setEjbClass
public void setEjbClass(String value)
- Specified by:
setEjbClassin interfaceEnterpriseBean
-
setEjbClass
public void setEjbClass(Class value)
- Specified by:
setEjbClassin interfaceEnterpriseBean
-
getSessionType
public SessionType getSessionType()
-
setSessionType
public void setSessionType(SessionType value)
-
getTimeoutMethod
public NamedMethod getTimeoutMethod()
- Specified by:
getTimeoutMethodin interfaceTimerConsumer
-
setTimeoutMethod
public void setTimeoutMethod(NamedMethod value)
- Specified by:
setTimeoutMethodin interfaceTimerConsumer
-
getInitMethod
public List<InitMethod> getInitMethod()
- Specified by:
getInitMethodin interfaceSession
-
getRemoveMethod
public List<RemoveMethod> getRemoveMethod()
- Specified by:
getRemoveMethodin interfaceSession
-
getTransactionType
public TransactionType getTransactionType()
- Specified by:
getTransactionTypein interfaceEnterpriseBean
-
setTransactionType
public void setTransactionType(TransactionType value)
- Specified by:
setTransactionTypein interfaceEnterpriseBean
-
getAfterBeginMethod
public NamedMethod getAfterBeginMethod()
-
setAfterBeginMethod
public void setAfterBeginMethod(NamedMethod afterBeginMethod)
-
getBeforeCompletionMethod
public NamedMethod getBeforeCompletionMethod()
-
setBeforeCompletionMethod
public void setBeforeCompletionMethod(NamedMethod beforeCompletionMethod)
-
getAfterCompletionMethod
public NamedMethod getAfterCompletionMethod()
-
setAfterCompletionMethod
public void setAfterCompletionMethod(NamedMethod afterCompletionMethod)
-
getAroundInvoke
public List<AroundInvoke> getAroundInvoke()
- Specified by:
getAroundInvokein interfaceInvokable
-
addAroundInvoke
public void addAroundInvoke(String method)
- Specified by:
addAroundInvokein interfaceInvokable
-
getEnvEntry
public Collection<EnvEntry> getEnvEntry()
- Specified by:
getEnvEntryin interfaceJndiConsumer
-
getEnvEntryMap
public Map<String,EnvEntry> getEnvEntryMap()
- Specified by:
getEnvEntryMapin interfaceJndiConsumer
-
getEjbRef
public Collection<EjbRef> getEjbRef()
- Specified by:
getEjbRefin interfaceJndiConsumer
-
getEjbRefMap
public Map<String,EjbRef> getEjbRefMap()
- Specified by:
getEjbRefMapin interfaceJndiConsumer
-
getEjbLocalRef
public Collection<EjbLocalRef> getEjbLocalRef()
- Specified by:
getEjbLocalRefin interfaceJndiConsumer
-
getEjbLocalRefMap
public Map<String,EjbLocalRef> getEjbLocalRefMap()
- Specified by:
getEjbLocalRefMapin interfaceJndiConsumer
-
getServiceRef
public Collection<ServiceRef> getServiceRef()
- Specified by:
getServiceRefin interfaceJndiConsumer
-
getServiceRefMap
public Map<String,ServiceRef> getServiceRefMap()
- Specified by:
getServiceRefMapin interfaceJndiConsumer
-
getResourceRef
public Collection<ResourceRef> getResourceRef()
- Specified by:
getResourceRefin interfaceJndiConsumer
-
getResourceRefMap
public Map<String,ResourceRef> getResourceRefMap()
- Specified by:
getResourceRefMapin interfaceJndiConsumer
-
getResourceEnvRef
public Collection<ResourceEnvRef> getResourceEnvRef()
- Specified by:
getResourceEnvRefin interfaceJndiConsumer
-
getResourceEnvRefMap
public Map<String,ResourceEnvRef> getResourceEnvRefMap()
- Specified by:
getResourceEnvRefMapin interfaceJndiConsumer
-
getMessageDestinationRef
public Collection<MessageDestinationRef> getMessageDestinationRef()
- Specified by:
getMessageDestinationRefin interfaceJndiConsumer
-
getMessageDestinationRefMap
public Map<String,MessageDestinationRef> getMessageDestinationRefMap()
- Specified by:
getMessageDestinationRefMapin interfaceJndiConsumer
-
getPersistenceContextRef
public Collection<PersistenceContextRef> getPersistenceContextRef()
- Specified by:
getPersistenceContextRefin interfaceJndiConsumer
-
getPersistenceContextRefMap
public Map<String,PersistenceContextRef> getPersistenceContextRefMap()
- Specified by:
getPersistenceContextRefMapin interfaceJndiConsumer
-
getPersistenceUnitRef
public Collection<PersistenceUnitRef> getPersistenceUnitRef()
- Specified by:
getPersistenceUnitRefin interfaceJndiConsumer
-
getPersistenceUnitRefMap
public Map<String,PersistenceUnitRef> getPersistenceUnitRefMap()
- Specified by:
getPersistenceUnitRefMapin interfaceJndiConsumer
-
getPostConstruct
public List<LifecycleCallback> getPostConstruct()
- Specified by:
getPostConstructin interfaceLifecycle
-
addPostConstruct
public void addPostConstruct(String method)
- Specified by:
addPostConstructin interfaceLifecycle
-
getPreDestroy
public List<LifecycleCallback> getPreDestroy()
- Specified by:
getPreDestroyin interfaceLifecycle
-
addPreDestroy
public void addPreDestroy(String method)
- Specified by:
addPreDestroyin interfaceLifecycle
-
getPostActivate
public List<LifecycleCallback> getPostActivate()
- Specified by:
getPostActivatein interfaceSession
-
addPostActivate
public void addPostActivate(String method)
- Specified by:
addPostActivatein interfaceSession
-
getPrePassivate
public List<LifecycleCallback> getPrePassivate()
- Specified by:
getPrePassivatein interfaceSession
-
addPrePassivate
public void addPrePassivate(String method)
- Specified by:
addPrePassivatein interfaceSession
-
getSecurityRoleRef
public List<SecurityRoleRef> getSecurityRoleRef()
- Specified by:
getSecurityRoleRefin interfaceEnterpriseBean
-
getSecurityIdentity
public SecurityIdentity getSecurityIdentity()
- Specified by:
getSecurityIdentityin interfaceEnterpriseBean
-
setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity value)
- Specified by:
setSecurityIdentityin interfaceEnterpriseBean
-
setDependsOn
public void setDependsOn(String... ejbNames)
-
hasInitOnStartup
public boolean hasInitOnStartup()
-
getInitOnStartup
public boolean getInitOnStartup()
-
setInitOnStartup
public void setInitOnStartup(boolean initOnStartup)
-
getId
public String getId()
- Specified by:
getIdin interfaceEnterpriseBean
-
setId
public void setId(String value)
- Specified by:
setIdin interfaceEnterpriseBean
-
getStatefulTimeout
public Timeout getStatefulTimeout()
-
setStatefulTimeout
public void setStatefulTimeout(Timeout statefulTimeout)
-
getAroundTimeout
public List<AroundTimeout> getAroundTimeout()
- Specified by:
getAroundTimeoutin interfaceInvokable
-
getAsyncMethod
public List<AsyncMethod> getAsyncMethod()
-
getConcurrencyManagementType
public ConcurrencyManagementType getConcurrencyManagementType()
-
setConcurrencyManagementType
public void setConcurrencyManagementType(ConcurrencyManagementType concurrencyManagementType)
-
getConcurrentMethod
public List<ConcurrentMethod> getConcurrentMethod()
-
addAfterBegin
public void addAfterBegin(String method)
- Specified by:
addAfterBeginin interfaceSession
-
addAfterCompletion
public void addAfterCompletion(String method)
- Specified by:
addAfterCompletionin interfaceSession
-
addBeforeCompletion
public void addBeforeCompletion(String method)
- Specified by:
addBeforeCompletionin interfaceSession
-
getAfterBegin
public List<LifecycleCallback> getAfterBegin()
- Specified by:
getAfterBeginin interfaceSession
-
getAfterCompletion
public List<LifecycleCallback> getAfterCompletion()
- Specified by:
getAfterCompletionin interfaceSession
-
getBeforeCompletion
public List<LifecycleCallback> getBeforeCompletion()
- Specified by:
getBeforeCompletionin interfaceSession
-
getDataSource
public Collection<DataSource> getDataSource()
- Specified by:
getDataSourcein interfaceJndiConsumer
-
getDataSourceMap
public Map<String,DataSource> getDataSourceMap()
- Specified by:
getDataSourceMapin interfaceJndiConsumer
-
getTimer
public List<Timer> getTimer()
- Specified by:
getTimerin interfaceTimerConsumer
-
addAroundTimeout
public void addAroundTimeout(String method)
- Specified by:
addAroundTimeoutin interfaceInvokable
-
addAsynchronousClass
public void addAsynchronousClass(String cls)
-
getTimerConsumerName
public String getTimerConsumerName()
- Specified by:
getTimerConsumerNamein interfaceTimerConsumer
-
isRestService
public boolean isRestService()
-
setRestService
public void setRestService(boolean restService)
-
setProxy
public void setProxy(String name)
-
getProxy
public String getProxy()
-
getParents
public Collection<String> getParents()
-
localBean
public EnterpriseBean localBean()
-
getPassivationCapable
public Boolean getPassivationCapable()
-
setPassivationCapable
public void setPassivationCapable(Boolean passivationCapable)
-
getJMSConnectionFactories
public Collection<JMSConnectionFactory> getJMSConnectionFactories()
- Specified by:
getJMSConnectionFactoriesin interfaceJndiConsumer
-
getJMSConnectionFactoriesMap
public Map<String,JMSConnectionFactory> getJMSConnectionFactoriesMap()
- Specified by:
getJMSConnectionFactoriesMapin interfaceJndiConsumer
-
getJMSDestination
public Collection<JMSDestination> getJMSDestination()
- Specified by:
getJMSDestinationin interfaceJndiConsumer
-
getJMSDestinationMap
public Map<String,JMSDestination> getJMSDestinationMap()
- Specified by:
getJMSDestinationMapin interfaceJndiConsumer
-
-