org.ow2.easybeans.api.bean.info
Interface IBeanInfo

All Known Subinterfaces:
ISessionBeanInfo

public interface IBeanInfo

This interface is used for containing a description for a bean. It is used at the runtime.

Author:
Florent Benoit

Method Summary
 IApplicationExceptionInfo getApplicationException(Throwable throwable)
          Try to see if we've an application exception object for the given exception.
 Map<String,IApplicationExceptionInfo> getApplicationExceptions()
          Gets the list of application exceptions defined on this ejb jar metadata.
 List<IMethodInfo> getBusinessMethodsInfo()
          Gets the business methods info.
 Object getCluster()
           
 List<org.ow2.util.ee.metadata.common.api.struct.IJAnnotationSqlDataSourceDefinition> getDataSourceDefinitions()
          DataSourcesDefinitions associated to the bean instance
 IApplicationExceptionInfo getDefaultCheckedException()
          Gets a default checked exception attribute with rollback = false for checkedException.
 List<String> getDependsOn()
           
 List<String> getLocalInterfaces()
           
 String getName()
          Gets the name of the bean.
 String getNoInterfaceViewInterface()
           
 List<String> getRemoteInterfaces()
           
 ISecurityInfo getSecurityInfo()
          Gets the security info.
 List<IMethodInfo> getSessionSynchronizationMethodsInfo()
          Gets the Session Synchronization methods.
 List<ITimerInfo> getTimersInfo()
           
 javax.ejb.TransactionManagementType getTransactionManagementType()
          Gets the type of transaction for the given bean.
 IWebServiceInfo getWebServiceInfo()
           
 boolean isStartup()
          Singleton startup ?
 void setApplicationExceptions(Map<String,IApplicationExceptionInfo> applicationExceptions)
          Sets the list of application exceptions defined on this ejb jar metadata.
 void setBusinessMethodsInfo(List<IMethodInfo> businessMethodsInfo)
          Sets the list of business methods.
 void setCluster(Object cluster)
          Sets the cluster configuration.
 void setLocalInterfaces(List<String> localInterfaces)
           
 void setName(String name)
          Sets the name of the bean.
 void setNoInterfaceViewInterface(String noInterfaceViewInterface)
           
 void setRemoteInterfaces(List<String> remoteInterfaces)
           
 void setSecurityInfo(ISecurityInfo securityInfo)
          Sets the security info.
 void setSessionSynchronizationMethodsInfo(List<IMethodInfo> sessionSynchronizationMethodsInfo)
          Sets the list of Session Synchronization methods.
 void setStartup(boolean startup)
          Sets the startup mode for the singleton.
 void setTimersInfo(List<ITimerInfo> timersInfo)
          Sets the timers info.
 void setTransactionManagementType(javax.ejb.TransactionManagementType transactionManagementType)
          Sets the type of transaction for the given bean.
 void setWebServiceInfo(IWebServiceInfo info)
           
 

Method Detail

getApplicationExceptions

Map<String,IApplicationExceptionInfo> getApplicationExceptions()
Gets the list of application exceptions defined on this ejb jar metadata.

Returns:
the list of application exceptions defined on this ejb jar metadata.

setApplicationExceptions

void setApplicationExceptions(Map<String,IApplicationExceptionInfo> applicationExceptions)
Sets the list of application exceptions defined on this ejb jar metadata.

Parameters:
applicationExceptions - the list of application exceptions defined on this ejb jar metadata.

getApplicationException

IApplicationExceptionInfo getApplicationException(Throwable throwable)
Try to see if we've an application exception object for the given exception.

Parameters:
throwable - the given throwable
Returns:
the object if found

getDefaultCheckedException

IApplicationExceptionInfo getDefaultCheckedException()
Gets a default checked exception attribute with rollback = false for checkedException.

Returns:
an application exception

getTransactionManagementType

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

Returns:
transaction management type.

setTransactionManagementType

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

Parameters:
transactionManagementType - transaction management type.

getSecurityInfo

ISecurityInfo getSecurityInfo()
Gets the security info.

Returns:
security info.

setSecurityInfo

void setSecurityInfo(ISecurityInfo securityInfo)
Sets the security info.

Parameters:
securityInfo - security info.

getBusinessMethodsInfo

List<IMethodInfo> getBusinessMethodsInfo()
Gets the business methods info.

Returns:
list of business methods

setBusinessMethodsInfo

void setBusinessMethodsInfo(List<IMethodInfo> businessMethodsInfo)
Sets the list of business methods.

Parameters:
businessMethodsInfo - the list of business methods

getSessionSynchronizationMethodsInfo

List<IMethodInfo> getSessionSynchronizationMethodsInfo()
Gets the Session Synchronization methods.

Returns:
the list of Session Synchronization methods

setSessionSynchronizationMethodsInfo

void setSessionSynchronizationMethodsInfo(List<IMethodInfo> sessionSynchronizationMethodsInfo)
Sets the list of Session Synchronization methods.

Parameters:
sessionSynchronizationMethodsInfo - the list of Session Synchronization methods

getName

String getName()
Gets the name of the bean.

Returns:
the name of the bean.

setName

void setName(String name)
Sets the name of the bean.

Parameters:
name - the bean's name.

getCluster

Object getCluster()
Returns:
the cluster configuration.

setCluster

void setCluster(Object cluster)
Sets the cluster configuration.

Parameters:
cluster - the cluster configuration to set.

getLocalInterfaces

List<String> getLocalInterfaces()
Returns:
list of local interfaces (if any).

setLocalInterfaces

void setLocalInterfaces(List<String> localInterfaces)
Parameters:
localInterfaces - list of local interfaces.

getRemoteInterfaces

List<String> getRemoteInterfaces()
Returns:
list of remote interfaces (if any).

setRemoteInterfaces

void setRemoteInterfaces(List<String> remoteInterfaces)
Parameters:
remoteInterfaces - list of remote interfaces.

getNoInterfaceViewInterface

String getNoInterfaceViewInterface()
Returns:
no inteface view interface (if any).

setNoInterfaceViewInterface

void setNoInterfaceViewInterface(String noInterfaceViewInterface)
Parameters:
noInterfaceViewInterface - no inteface view interface (if any)..

getWebServiceInfo

IWebServiceInfo getWebServiceInfo()
Returns:
the webservices info related to this bean (if any)

setWebServiceInfo

void setWebServiceInfo(IWebServiceInfo info)
Parameters:
info - web services related runtime information.

getDependsOn

List<String> getDependsOn()
Returns:
the list of dependencies of this bean.

isStartup

boolean isStartup()
Singleton startup ?

Returns:
true if the singleton is a startup singleton

setStartup

void setStartup(boolean startup)
Sets the startup mode for the singleton.

Parameters:
startup - true/false

getTimersInfo

List<ITimerInfo> getTimersInfo()
Returns:
list of timers that needs to be applied on this bean.

setTimersInfo

void setTimersInfo(List<ITimerInfo> timersInfo)
Sets the timers info.

Parameters:
timersInfo - the list of timers that needs to be applied on this bean.

getDataSourceDefinitions

List<org.ow2.util.ee.metadata.common.api.struct.IJAnnotationSqlDataSourceDefinition> getDataSourceDefinitions()
DataSourcesDefinitions associated to the bean instance

Returns:
the list of DataSourcesDefinitions


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.