org.objectweb.easybeans.container.info
Class BeanInfo

java.lang.Object
  extended by org.objectweb.easybeans.container.info.BeanInfo
All Implemented Interfaces:
IBeanInfo
Direct Known Subclasses:
MessageDrivenInfo, SessionBeanInfo

public class BeanInfo
extends java.lang.Object
implements IBeanInfo

This class contains description for a bean. It is used at the runtime.

Author:
Florent Benoit

Field Summary
private  java.util.Map<java.lang.String,ApplicationException> applicationExceptions
          List of application exceptions used on this ejb-jar.
private  java.lang.String name
          Bean's name.
private  ISecurityInfo securityInfo
          Security info.
private  TransactionManagementType transactionManagementType
          Management type for the bean.
 
Constructor Summary
BeanInfo()
           
 
Method Summary
 java.util.Map<java.lang.String,ApplicationException> getApplicationExceptions()
          Gets the list of application exceptions defined on this ejb jar metadata.
 java.lang.String getName()
          Gets the name of the bean.
 ISecurityInfo getSecurityInfo()
          Gets the security info.
 TransactionManagementType getTransactionManagementType()
          Gets the type of transaction for the given bean.
 void setApplicationExceptions(java.util.Map<java.lang.String,ApplicationException> applicationExceptions)
          Sets the list of application exceptions defined on this ejb jar metadata.
 void setName(java.lang.String name)
          Sets the name of the bean.
 void setSecurityInfo(ISecurityInfo securityInfo)
          Sets the security info.
 void setTransactionManagementType(TransactionManagementType transactionManagementType)
          Sets the type of transaction for the given bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Bean's name.


securityInfo

private ISecurityInfo securityInfo
Security info.


transactionManagementType

private TransactionManagementType transactionManagementType
Management type for the bean.


applicationExceptions

private java.util.Map<java.lang.String,ApplicationException> applicationExceptions
List of application exceptions used on this ejb-jar.

Constructor Detail

BeanInfo

public BeanInfo()
Method Detail

getApplicationExceptions

public java.util.Map<java.lang.String,ApplicationException> getApplicationExceptions()
Gets the list of application exceptions defined on this ejb jar metadata.

Specified by:
getApplicationExceptions in interface IBeanInfo
Returns:
the list of application exceptions defined on this ejb jar metadata.

setApplicationExceptions

public void setApplicationExceptions(java.util.Map<java.lang.String,ApplicationException> applicationExceptions)
Sets the list of application exceptions defined on this ejb jar metadata.

Specified by:
setApplicationExceptions in interface IBeanInfo
Parameters:
applicationExceptions - the list of application exceptions defined on this ejb jar metadata.

getTransactionManagementType

public TransactionManagementType getTransactionManagementType()
Gets the type of transaction for the given bean.

Specified by:
getTransactionManagementType in interface IBeanInfo
Returns:
transaction management type.

setTransactionManagementType

public void setTransactionManagementType(TransactionManagementType transactionManagementType)
Sets the type of transaction for the given bean.

Specified by:
setTransactionManagementType in interface IBeanInfo
Parameters:
transactionManagementType - transaction management type.

setSecurityInfo

public void setSecurityInfo(ISecurityInfo securityInfo)
Sets the security info.

Specified by:
setSecurityInfo in interface IBeanInfo
Parameters:
securityInfo - security info.

getSecurityInfo

public ISecurityInfo getSecurityInfo()
Gets the security info.

Specified by:
getSecurityInfo in interface IBeanInfo
Returns:
security info.

getName

public java.lang.String getName()
Gets the name of the bean.

Specified by:
getName in interface IBeanInfo
Returns:
the name of the bean.

setName

public void setName(java.lang.String name)
Sets the name of the bean.

Specified by:
setName in interface IBeanInfo
Parameters:
name - the bean's name.