org.jboss.metadata.ejb.jboss
Class JBossSessionBeanMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
              extended by org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData
                  extended by org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>, ITimeoutTarget, Environment, RemoteEnvironment, IdMetaData, MappableMetaData
Direct Known Subclasses:
JBoss50SessionBeanMetaData, JBoss51SessionBeanMetaData, JBossServiceBeanMetaData

public class JBossSessionBeanMetaData
extends JBossEnterpriseBeanMetaData
implements ITimeoutTarget

SessionBeanMetaData.

Version:
$Revision: 84989 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
JBossSessionBeanMetaData()
          Create a new SessionBeanMetaData.
 
Method Summary
 void checkValid()
           
 ClusterConfigMetaData determineClusterConfig()
          Determine the clusterConfig.
 String determineJndiName()
          Deprecated. JBMETA-68
 String determineLocalJndiName()
          Deprecated. JBMETA-68
 AroundInvokesMetaData getAroundInvokes()
          Get the aroundInvokes.
 BusinessLocalsMetaData getBusinessLocals()
          Get the businessLocals.
 BusinessRemotesMetaData getBusinessRemotes()
          Get the businessRemotes.
 CacheConfigMetaData getCacheConfig()
           
 ClusterConfigMetaData getClusterConfig()
          Get the clusterConfig.
 String getContainerObjectNameJndiName()
          Determine the container jndi name used in the object name.
 String getDefaultConfigurationName()
          Get the default configuration name
protected  String getDefaultInvokerJndiName()
          Determine the jndi name for invoker bindings that come from the container configuration
 String getDefaultInvokerName()
          Get the default invokers
 SecurityIdentityMetaData getEjbTimeoutIdentity()
          Get the ejbTimeoutIdentity.
 String getHome()
          Get the home.
 String getHomeJndiName()
           
 InitMethodsMetaData getInitMethods()
          Get the initMethods.
 String getJndiName()
          Get the jndiName.
 String getLocal()
          Get the local.
 List<LocalBindingMetaData> getLocalBindings()
          Get the local bindings
 String getLocalHome()
          Get the localHome.
 String getLocalHomeJndiName()
           
 PortComponent getPortComponent()
           
 LifecycleCallbacksMetaData getPostActivates()
          Get the postActivates.
 LifecycleCallbacksMetaData getPrePassivates()
          Get the prePassivates.
 String getRemote()
          Get the remote.
 List<RemoteBindingMetaData> getRemoteBindings()
          Get the remoteBinding.
 RemoveMethodsMetaData getRemoveMethods()
          Get the removeMethods.
 SecurityRoleRefsMetaData getSecurityRoleRefs()
          Get the securityRoleRefs.
 String getServiceEndpoint()
          Get the serviceEndpoint.
 SessionType getSessionType()
          Get the sessionType.
 NamedMethodMetaData getTimeoutMethod()
          Get the timeoutMethod.
 boolean isCallByValue()
          Get the callByValue.
 boolean isClustered()
          Get the clustered.
 Boolean isConcurrent()
          Get the concurrent.
 boolean isSession()
          Whether this is a session bean
 boolean isStateful()
          Is this stateful
 boolean isStateless()
          Is this stateless
 void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original, String overridenFile, String overrideFile, boolean mustOverride)
           
 void merge(JBossEnterpriseBeanMetaData override, JBossEnterpriseBeanMetaData original)
           
protected  void merge(JBossGenericBeanMetaData generic)
           
 void setAroundInvokes(AroundInvokesMetaData aroundInvokes)
          Set the aroundInvokes.
 void setBusinessLocals(BusinessLocalsMetaData businessLocals)
          Set the businessLocals.
 void setBusinessRemotes(BusinessRemotesMetaData businessRemotes)
          Set the businessRemotes.
 void setCacheConfig(CacheConfigMetaData cacheConfig)
           
 void setCallByValue(boolean callByValue)
          Set the callByValue.
 void setClusterConfig(ClusterConfigMetaData clusterConfig)
          Set the clusterConfig.
 void setClustered(boolean clustered)
          Set the clustered.
 void setConcurrent(Boolean concurrent)
          Set the concurrent.
 void setEjbTimeoutIdentity(SecurityIdentityMetaData ejbTimeoutIdentity)
          Set the ejbTimeoutIdentity.
 void setHome(String home)
          Set the home.
 void setHomeJndiName(String homeJndiName)
           
 void setInitMethods(InitMethodsMetaData initMethods)
          Set the initMethods.
 void setJndiName(String jndiName)
          Set the jndiName.
 void setLocal(String local)
          Set the local.
 void setLocalBindings(List<LocalBindingMetaData> localBindings)
          Set the local bindings.
 void setLocalHome(String localHome)
          Set the localHome.
 void setLocalHomeJndiName(String localHomeJndiName)
           
 void setPortComponent(PortComponent portComponent)
           
 void setPostActivates(LifecycleCallbacksMetaData postActivates)
          Set the postActivates.
 void setPrePassivates(LifecycleCallbacksMetaData prePassivates)
          Set the prePassivates.
 void setRemote(String remote)
          Set the remote.
 void setRemoteBindings(List<RemoteBindingMetaData> remoteBindings)
          Set the remoteBinding.
 void setRemoveMethods(RemoveMethodsMetaData removeMethods)
          Set the removeMethods.
 void setSecurityRoleRefs(SecurityRoleRefsMetaData securityRoleRefs)
          Set the securityRoleRefs.
 void setServiceEndpoint(String serviceEndpoint)
          Set the serviceEndpoint.
 void setSessionType(SessionType sessionType)
          Set the sessionType.
 void setTimeoutMethod(NamedMethodMetaData timeoutMethod)
          Set the timeoutMethod.
 
Methods inherited from class org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData
createPolicy, determineAllDepends, determineConfigurationName, determineContainerConfiguration, determineContainerName, determineInvokerBinding, determineInvokerBindings, determineResolvedJndiName, determineResolvedJndiName, getAnnotatedEjbReferences, getAnnotations, getAopDomainName, getAssemblyDescriptor, getConfigurationName, getContainerName, getContainerTransactions, getDefaultInvokers, getDepends, getEjbClass, getEjbJarMetaData, getEjbLocalReferenceByName, getEjbLocalReferences, getEjbName, getEjbReferenceByName, getEjbReferences, getEnterpriseBeansMetaData, getEnvironmentEntries, getEnvironmentEntryByName, getExcludeList, getGeneratedContainerName, getIgnoreDependency, getInvokerBindings, getIorSecurityConfig, getJBossMetaData, getJBossMetaDataWithCheck, getJndiBindingPolicy, getJndiEnvironmentRefsGroup, getJndiRefs, getLocalJndiName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferences, getMethodAttributes, getMethodPermissions, getMethodPermissions, getMethodTransactionTimeout, getMethodTransactionTimeout, getMethodTransactionType, getMethodTransactionType, getPersistenceContextReferenceByName, getPersistenceContextRefs, getPersistenceUnitReferenceByName, getPersistenceUnitRefs, getPoolConfig, getPostConstructs, getPreDestroys, getResourceEnvironmentReferenceByName, getResourceEnvironmentReferences, getResourceReferenceByName, getResourceReferences, getSecurityDomain, getSecurityIdentity, getSecurityProxy, getSecurityRole, getSecurityRolePrincipals, getSecurityRolesPrincipalVersusRolesMap, getServiceReferenceByName, getServiceReferences, getTransactionType, hasMethodPermissions, isBMT, isCMT, isConsumer, isEntity, isExceptionOnRollback, isGeneric, isMessageDriven, isMethodReadOnly, isMethodReadOnly, isService, isTimerPersistence, merge, merge, newBean, newBean, setAnnotations, setAopDomainName, setConfigurationName, setContainerName, setDepends, setEjbClass, setEjbName, setEnterpriseBeansMetaData, setEnvironmentRefsGroup, setExceptionOnRollback, setGeneratedContainerName, setIgnoreDependency, setInvokerBindings, setIorSecurityConfig, setJndiBindingPolicy, setJndiEnvironmentRefsGroup, setJndiRefs, setLocalJndiName, setMappedName, setMethodAttributes, setPoolConfig, setSecurityDomain, setSecurityIdentity, setSecurityProxy, setTimerPersistence, setTransactionType
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
getDescriptionGroup, setDescriptionGroup
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, getName, hashCode, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.common.ejb.IEnterpriseBeanMetaData
getDescriptionGroup, getId, setDescriptionGroup
 
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData
getKey
 

Constructor Detail

JBossSessionBeanMetaData

public JBossSessionBeanMetaData()
Create a new SessionBeanMetaData.

Method Detail

isSession

public boolean isSession()
Description copied from class: JBossEnterpriseBeanMetaData
Whether this is a session bean

Specified by:
isSession in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Overrides:
isSession in class JBossEnterpriseBeanMetaData
Returns:
true when a session bean

getCacheConfig

public CacheConfigMetaData getCacheConfig()

setCacheConfig

public void setCacheConfig(CacheConfigMetaData cacheConfig)

getHome

public String getHome()
Get the home.

Returns:
the home.

setHome

public void setHome(String home)
Set the home.

Parameters:
home - the home.
Throws:
IllegalArgumentException - for a null home

getHomeJndiName

public String getHomeJndiName()

setHomeJndiName

public void setHomeJndiName(String homeJndiName)

getRemote

public String getRemote()
Get the remote.

Returns:
the remote.

setRemote

public void setRemote(String remote)
Set the remote.

Parameters:
remote - the remote.
Throws:
IllegalArgumentException - for a null remote

getLocalHome

public String getLocalHome()
Get the localHome.

Returns:
the localHome.

setLocalHome

public void setLocalHome(String localHome)
Set the localHome.

Parameters:
localHome - the localHome.
Throws:
IllegalArgumentException - for a null localHome

getLocal

public String getLocal()
Get the local.

Returns:
the local.

setLocal

public void setLocal(String local)
Set the local.

Parameters:
local - the local.
Throws:
IllegalArgumentException - for a null local

getLocalHomeJndiName

public String getLocalHomeJndiName()

setLocalHomeJndiName

public void setLocalHomeJndiName(String localHomeJndiName)

getBusinessLocals

public BusinessLocalsMetaData getBusinessLocals()
Get the businessLocals.

Returns:
the businessLocals.

setBusinessLocals

public void setBusinessLocals(BusinessLocalsMetaData businessLocals)
Set the businessLocals.

Parameters:
businessLocals - the businessLocals.
Throws:
IllegalArgumentException - for a null businessLocasl

getBusinessRemotes

public BusinessRemotesMetaData getBusinessRemotes()
Get the businessRemotes.

Returns:
the businessRemotes.

setBusinessRemotes

public void setBusinessRemotes(BusinessRemotesMetaData businessRemotes)
Set the businessRemotes.

Parameters:
businessRemotes - the businessRemotes.
Throws:
IllegalArgumentException - for a null businessRemotes

getServiceEndpoint

public String getServiceEndpoint()
Get the serviceEndpoint.

Returns:
the serviceEndpoint.

setServiceEndpoint

public void setServiceEndpoint(String serviceEndpoint)
Set the serviceEndpoint.

Parameters:
serviceEndpoint - the serviceEndpoint.
Throws:
IllegalArgumentException - for a null serviceEndpoint

getSessionType

public SessionType getSessionType()
Get the sessionType.

Returns:
the sessionType.

setSessionType

public void setSessionType(SessionType sessionType)
Set the sessionType.

Parameters:
sessionType - the sessionType.
Throws:
IllegalArgumentException - for a null sessionType

isStateful

public boolean isStateful()
Is this stateful

Returns:
true for stateful

isStateless

public boolean isStateless()
Is this stateless

Returns:
true for stateless

getTimeoutMethod

public NamedMethodMetaData getTimeoutMethod()
Get the timeoutMethod.

Specified by:
getTimeoutMethod in interface ITimeoutTarget
Returns:
the timeoutMethod.

setTimeoutMethod

public void setTimeoutMethod(NamedMethodMetaData timeoutMethod)
Set the timeoutMethod.

Specified by:
setTimeoutMethod in interface ITimeoutTarget
Parameters:
timeoutMethod - the timeoutMethod.
Throws:
IllegalArgumentException - for a null timeoutMethod

getInitMethods

public InitMethodsMetaData getInitMethods()
Get the initMethods.

Returns:
the initMethods.

setInitMethods

public void setInitMethods(InitMethodsMetaData initMethods)
Set the initMethods.

Parameters:
initMethods - the initMethods.
Throws:
IllegalArgumentException - for a null initMethods

getRemoveMethods

public RemoveMethodsMetaData getRemoveMethods()
Get the removeMethods.

Returns:
the removeMethods.

setRemoveMethods

public void setRemoveMethods(RemoveMethodsMetaData removeMethods)
Set the removeMethods.

Parameters:
removeMethods - the removeMethods.
Throws:
IllegalArgumentException - for a null removeMethods

getAroundInvokes

public AroundInvokesMetaData getAroundInvokes()
Get the aroundInvokes.

Returns:
the aroundInvokes.

setAroundInvokes

public void setAroundInvokes(AroundInvokesMetaData aroundInvokes)
Set the aroundInvokes.

Parameters:
aroundInvokes - the aroundInvokes.
Throws:
IllegalArgumentException - for a null aroundInvokes

getPostActivates

public LifecycleCallbacksMetaData getPostActivates()
Get the postActivates.

Returns:
the postActivates.

setPostActivates

public void setPostActivates(LifecycleCallbacksMetaData postActivates)
Set the postActivates.

Parameters:
postActivates - the postActivates.
Throws:
IllegalArgumentException - for a null postActivates

getPrePassivates

public LifecycleCallbacksMetaData getPrePassivates()
Get the prePassivates.

Returns:
the prePassivates.

setPrePassivates

public void setPrePassivates(LifecycleCallbacksMetaData prePassivates)
Set the prePassivates.

Parameters:
prePassivates - the prePassivates.
Throws:
IllegalArgumentException - for a null prePassivates

getSecurityRoleRefs

public SecurityRoleRefsMetaData getSecurityRoleRefs()
Get the securityRoleRefs.

Overrides:
getSecurityRoleRefs in class JBossEnterpriseBeanMetaData
Returns:
the securityRoleRefs.

setSecurityRoleRefs

public void setSecurityRoleRefs(SecurityRoleRefsMetaData securityRoleRefs)
Set the securityRoleRefs.

Parameters:
securityRoleRefs - the securityRoleRefs.
Throws:
IllegalArgumentException - for a null securityRoleRefs

getDefaultConfigurationName

public String getDefaultConfigurationName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default configuration name

Specified by:
getDefaultConfigurationName in class JBossEnterpriseBeanMetaData
Returns:
the default name

getDefaultInvokerName

public String getDefaultInvokerName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default invokers

Specified by:
getDefaultInvokerName in class JBossEnterpriseBeanMetaData
Returns:
the default invokers

getJndiName

public String getJndiName()
Get the jndiName.

Returns:
the jndiName.

setJndiName

public void setJndiName(String jndiName)
Set the jndiName.

Parameters:
jndiName - the jndiName.
Throws:
IllegalArgumentException - for a null jndiName

determineJndiName

@Deprecated
public String determineJndiName()
Deprecated. JBMETA-68

Determine the jndi name

Specified by:
determineJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name

determineLocalJndiName

@Deprecated
public String determineLocalJndiName()
Deprecated. JBMETA-68

Determine the localJndiName.

Overrides:
determineLocalJndiName in class JBossEnterpriseBeanMetaData
Returns:
the localJndiName.

getContainerObjectNameJndiName

public String getContainerObjectNameJndiName()
Description copied from class: JBossEnterpriseBeanMetaData
Determine the container jndi name used in the object name. This is really obsolete as there is no need for jmx names.

Overrides:
getContainerObjectNameJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name suitable for use in the object name

getDefaultInvokerJndiName

protected String getDefaultInvokerJndiName()
Description copied from class: JBossEnterpriseBeanMetaData
Determine the jndi name for invoker bindings that come from the container configuration

Overrides:
getDefaultInvokerJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name suitable for use on the default invoker

isCallByValue

public boolean isCallByValue()
Get the callByValue.

Returns:
the callByValue.

setCallByValue

public void setCallByValue(boolean callByValue)
Set the callByValue.

Parameters:
callByValue - the callByValue.

isClustered

public boolean isClustered()
Get the clustered.

Returns:
the clustered.

setClustered

public void setClustered(boolean clustered)
Set the clustered.

Parameters:
clustered - the clustered.

isConcurrent

public Boolean isConcurrent()
Get the concurrent.

Returns:
the concurrent.

setConcurrent

public void setConcurrent(Boolean concurrent)
Set the concurrent.

Parameters:
concurrent - the concurrent.

getEjbTimeoutIdentity

public SecurityIdentityMetaData getEjbTimeoutIdentity()
Get the ejbTimeoutIdentity.

Returns:
the ejbTimeoutIdentity.

setEjbTimeoutIdentity

public void setEjbTimeoutIdentity(SecurityIdentityMetaData ejbTimeoutIdentity)
Set the ejbTimeoutIdentity.

Parameters:
ejbTimeoutIdentity - the ejbTimeoutIdentity.
Throws:
IllegalArgumentException - for a null ejbTimeoutIdentity

getClusterConfig

public ClusterConfigMetaData getClusterConfig()
Get the clusterConfig.

Returns:
the clusterConfig.

determineClusterConfig

public ClusterConfigMetaData determineClusterConfig()
Determine the clusterConfig.

Returns:
the clusterConfig.

setClusterConfig

public void setClusterConfig(ClusterConfigMetaData clusterConfig)
Set the clusterConfig.

Parameters:
clusterConfig - the clusterConfig.
Throws:
IllegalArgumentException - for a null clusterConfig

getPortComponent

public PortComponent getPortComponent()

setPortComponent

public void setPortComponent(PortComponent portComponent)

getLocalBindings

public List<LocalBindingMetaData> getLocalBindings()
Get the local bindings

Returns:
the localBindings

setLocalBindings

public void setLocalBindings(List<LocalBindingMetaData> localBindings)
Set the local bindings.

Parameters:
the - localBindings

getRemoteBindings

public List<RemoteBindingMetaData> getRemoteBindings()
Get the remoteBinding.

Returns:
the remoteBinding.

setRemoteBindings

public void setRemoteBindings(List<RemoteBindingMetaData> remoteBindings)
Set the remoteBinding.

Parameters:
remoteBinding - the remoteBinding.
Throws:
IllegalArgumentException - for a null remoteBinding

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  EnterpriseBeanMetaData original,
                  String overridenFile,
                  String overrideFile,
                  boolean mustOverride)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  JBossEnterpriseBeanMetaData original)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

protected void merge(JBossGenericBeanMetaData generic)
Overrides:
merge in class JBossEnterpriseBeanMetaData

checkValid

public void checkValid()
Overrides:
checkValid in class JBossEnterpriseBeanMetaData


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.