org.objectweb.easybeans.deployment.xml.struct
Class Session

java.lang.Object
  extended by org.objectweb.easybeans.deployment.xml.struct.common.AbsEnvironment
      extended by org.objectweb.easybeans.deployment.xml.struct.AbsBean
          extended by org.objectweb.easybeans.deployment.xml.struct.Session

public class Session
extends AbsBean

Defines a representation for <session> element.

Author:
Florent Benoit

Field Summary
private  java.util.List<java.lang.String> businessLocalList
          business-local interfaces.
private  java.util.List<java.lang.String> businessRemoteList
          business-remote interfaces.
private  java.lang.String localHome
          Local Home.
private  java.lang.String mappedName
          Mapped name.
static java.lang.String NAME
          Name of this element.
private  java.lang.String remoteHome
          Remote Home.
private  java.util.List<RemoveMethod> removeMethods
          List of remove-method (only for stateful beans).
private  java.lang.String sessionType
          Type of session bean (stateless/stateful).
private  java.lang.String transactionType
          Type of transaction.
 
Constructor Summary
Session()
          Constructor.
 
Method Summary
 void addBusinessLocal(java.lang.String businessLocal)
          Add the business-local interface.
 void addBusinessRemote(java.lang.String businessRemote)
          Add the business-remote interface.
 void addRemoveMethod(RemoveMethod removeMethod)
          Add the method used as a remove method.
 java.util.List<java.lang.String> getBusinessLocalList()
          Gets the business-local interface list.
 java.util.List<java.lang.String> getBusinessRemoteList()
          Gets the business-remote interface list.
 java.lang.String getLocalHome()
          Gets the local Home.
 java.lang.String getMappedName()
          Gets the mapped name.
 java.lang.String getRemoteHome()
          Gets the remote Home.
 java.util.List<RemoveMethod> getRemoveMethodList()
          Gets the list of remove methods.
 java.lang.String getSessionType()
          Gets the session-type.
 java.lang.String getTransactionType()
          Gets the transaction-type.
 void setLocalHome(java.lang.String localHome)
          Set the local Home.
 void setMappedName(java.lang.String mappedName)
          Set the mapped name.
 void setRemoteHome(java.lang.String remoteHome)
          Set the remote Home.
 void setSessionType(java.lang.String sessionType)
          Set the session-type.
 void setTransactionType(java.lang.String transactionType)
          Set the transaction-type.
 
Methods inherited from class org.objectweb.easybeans.deployment.xml.struct.AbsBean
getEjbClass, getEjbName, setEjbClass, setEjbName
 
Methods inherited from class org.objectweb.easybeans.deployment.xml.struct.common.AbsEnvironment
addAroundInvoke, addEJBLocalRef, addEJBRef, addEnvEntry, addPostActivateCallback, addPostConstructCallback, addPreDestroyCallback, addPrePassivateCallback, addResourceEnvRef, addResourceRef, getAroundInvokeList, getEJBLocalRefList, getEJBRefList, getEnvEntryList, getPostActivateCallbackList, getPostConstructCallbackList, getPreDestroyCallbackList, getPrePassivateCallbackList, getResourceEnvRefList, getResourceRefList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Name of this element.

See Also:
Constant Field Values

businessRemoteList

private java.util.List<java.lang.String> businessRemoteList
business-remote interfaces.


businessLocalList

private java.util.List<java.lang.String> businessLocalList
business-local interfaces.


removeMethods

private java.util.List<RemoveMethod> removeMethods
List of remove-method (only for stateful beans).


sessionType

private java.lang.String sessionType
Type of session bean (stateless/stateful).


transactionType

private java.lang.String transactionType
Type of transaction.


mappedName

private java.lang.String mappedName
Mapped name.


remoteHome

private java.lang.String remoteHome
Remote Home.


localHome

private java.lang.String localHome
Local Home.

Constructor Detail

Session

public Session()
Constructor.

Method Detail

getBusinessRemoteList

public java.util.List<java.lang.String> getBusinessRemoteList()
Gets the business-remote interface list.

Returns:
business-remote interface list

getBusinessLocalList

public java.util.List<java.lang.String> getBusinessLocalList()
Gets the business-local interface list.

Returns:
business-local interface list

addBusinessRemote

public void addBusinessRemote(java.lang.String businessRemote)
Add the business-remote interface.

Parameters:
businessRemote - business-remote interface.

addBusinessLocal

public void addBusinessLocal(java.lang.String businessLocal)
Add the business-local interface.

Parameters:
businessLocal - business-remote interface.

getRemoveMethodList

public java.util.List<RemoveMethod> getRemoveMethodList()
Gets the list of remove methods.

Returns:
list of remove methods

addRemoveMethod

public void addRemoveMethod(RemoveMethod removeMethod)
Add the method used as a remove method.

Parameters:
removeMethod - the given remove method

getSessionType

public java.lang.String getSessionType()
Gets the session-type.

Returns:
the session-type.

setSessionType

public void setSessionType(java.lang.String sessionType)
Set the session-type.

Parameters:
sessionType - the type of session.

getTransactionType

public java.lang.String getTransactionType()
Gets the transaction-type.

Returns:
the transaction-type

setTransactionType

public void setTransactionType(java.lang.String transactionType)
Set the transaction-type.

Parameters:
transactionType - transaction-type.

getMappedName

public java.lang.String getMappedName()
Gets the mapped name.

Returns:
the mapped name

setMappedName

public void setMappedName(java.lang.String mappedName)
Set the mapped name.

Parameters:
mappedName - the given mapped name.

getRemoteHome

public java.lang.String getRemoteHome()
Gets the remote Home.

Returns:
the remote Home

setRemoteHome

public void setRemoteHome(java.lang.String remoteHome)
Set the remote Home.

Parameters:
remoteHome - the given remote Home.

getLocalHome

public java.lang.String getLocalHome()
Gets the local Home.

Returns:
the local Home

setLocalHome

public void setLocalHome(java.lang.String localHome)
Set the local Home.

Parameters:
localHome - the given local Home.