org.jboss.metadata.ejb.spec
Class SessionBeanMetaData

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.spec.EnterpriseBeanMetaData
                  extended by org.jboss.metadata.ejb.spec.SessionBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<AssemblyDescriptorMetaData,EnterpriseBeansMetaData,EnterpriseBeanMetaData,EjbJarMetaData>, ITimeoutTarget, Environment, RemoteEnvironment, IdMetaData, MappableMetaData

public class SessionBeanMetaData
extends EnterpriseBeanMetaData
implements ITimeoutTarget

SessionBeanMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
SessionBeanMetaData()
          Create a new SessionBeanMetaData.
 
Method Summary
 AroundInvokesMetaData getAroundInvokes()
          Get the aroundInvokes.
 BusinessLocalsMetaData getBusinessLocals()
          Get the businessLocals.
 BusinessRemotesMetaData getBusinessRemotes()
          Get the businessRemotes.
 String getHome()
          Get the home.
 InitMethodsMetaData getInitMethods()
          Get the initMethods.
 String getLocal()
          Get the local.
 String getLocalHome()
          Get the localHome.
 LifecycleCallbacksMetaData getPostActivates()
          Get the postActivates.
 LifecycleCallbacksMetaData getPrePassivates()
          Get the prePassivates.
 String getRemote()
          Get the remote.
 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.
 javax.ejb.TransactionManagementType getTransactionType()
          Get the transactionType.
 boolean isSession()
          Whether this is a session bean
 boolean isStateful()
          Is this stateful
 boolean isStateless()
          Is this stateless
 void merge(EnterpriseBeanMetaData eoverride, EnterpriseBeanMetaData eoriginal)
          Merge two EnterpriseBeanMetaDatas
 void setAroundInvokes(AroundInvokesMetaData aroundInvokes)
          Set the aroundInvokes.
 void setBusinessLocals(BusinessLocalsMetaData businessLocals)
          Set the businessLocals.
 void setBusinessRemotes(BusinessRemotesMetaData businessRemotes)
          Set the businessRemotes.
 void setHome(String home)
          Set the home.
 void setInitMethods(InitMethodsMetaData initMethods)
          Set the initMethods.
 void setLocal(String local)
          Set the local.
 void setLocalHome(String localHome)
          Set the localHome.
 void setPostActivates(LifecycleCallbacksMetaData postActivates)
          Set the postActivates.
 void setPrePassivates(LifecycleCallbacksMetaData prePassivates)
          Set the prePassivates.
 void setRemote(String remote)
          Set the remote.
 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.
 void setTransactionType(javax.ejb.TransactionManagementType transactionType)
          Set the transactionType.
 
Methods inherited from class org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData
getAnnotatedEjbReferences, getAssemblyDescriptor, getContainerTransactions, getEjbClass, getEjbJarMetaData, getEjbLocalReferenceByName, getEjbLocalReferences, getEjbName, getEjbReferenceByName, getEjbReferences, getEnterpriseBeansMetaData, getEnvironmentEntries, getEnvironmentEntryByName, getExcludeList, getJndiEnvironmentRefsGroup, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferences, getMethodPermissions, getMethodTransactionType, getMethodTransactionType, getPersistenceContextReferenceByName, getPersistenceContextRefs, getPersistenceUnitReferenceByName, getPersistenceUnitRefs, getPostConstructs, getPreDestroys, getResourceEnvironmentReferenceByName, getResourceEnvironmentReferences, getResourceReferenceByName, getResourceReferences, getSecurityIdentity, getServiceReferenceByName, getServiceReferences, isBMT, isCMT, isEntity, isMessageDriven, newBean, setEjbClass, setEjbName, setEnterpriseBeansMetaData, setEnvironmentRefsGroup, setJndiEnvironmentRefsGroup, setMappedName, setSecurityIdentity
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
getDescriptionGroup, merge, 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

SessionBeanMetaData

public SessionBeanMetaData()
Create a new SessionBeanMetaData.

Method Detail

isSession

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

Specified by:
isSession in interface IEnterpriseBeanMetaData<AssemblyDescriptorMetaData,EnterpriseBeansMetaData,EnterpriseBeanMetaData,EjbJarMetaData>
Overrides:
isSession in class EnterpriseBeanMetaData
Returns:
true when a session bean

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

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

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

getTransactionType

public javax.ejb.TransactionManagementType getTransactionType()
Description copied from class: EnterpriseBeanMetaData
Get the transactionType.

Specified by:
getTransactionType in interface IEnterpriseBeanMetaData<AssemblyDescriptorMetaData,EnterpriseBeansMetaData,EnterpriseBeanMetaData,EjbJarMetaData>
Overrides:
getTransactionType in class EnterpriseBeanMetaData
Returns:
the transactionType.

setTransactionType

public void setTransactionType(javax.ejb.TransactionManagementType transactionType)
Set the transactionType.

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

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.

Returns:
the securityRoleRefs.

setSecurityRoleRefs

public void setSecurityRoleRefs(SecurityRoleRefsMetaData securityRoleRefs)
Set the securityRoleRefs.

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

merge

public void merge(EnterpriseBeanMetaData eoverride,
                  EnterpriseBeanMetaData eoriginal)
Description copied from class: EnterpriseBeanMetaData
Merge two EnterpriseBeanMetaDatas

Overrides:
merge in class EnterpriseBeanMetaData


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