org.objectweb.jonas_ejb.deployment.api.BeanDesc Class Reference

Inherited by org.objectweb.jonas_ejb.deployment.api.EntityDesc, org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc, and org.objectweb.jonas_ejb.deployment.api.SessionDesc.

Inheritance diagram for org.objectweb.jonas_ejb.deployment.api.BeanDesc:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.deployment.api.BeanDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BeanDesc (ClassLoader classLoader, CommonEjb ejb, JonasCommonEjb jonasEjb, AssemblyDescriptor asd, JLinkedList jMDRList, String fileName) throws DeploymentDescException
void checkRemoteException (java.lang.reflect.Method m, boolean shouldThrow) throws DeploymentDescException
void checkValidTypesForRmi (java.lang.reflect.Method m)
void check () throws DeploymentDescException
void checkRunAsMapping () throws DeploymentDescException
String getEjbName ()
String getJndiName ()
String getJndiLocalName ()
Class getHomeClass ()
Class getRemoteClass ()
Class getLocalHomeClass ()
Class getLocalClass ()
Class getEjbClass ()
Properties getEjb10Environment ()
MethodDesc getMethodDesc (java.lang.reflect.Method method)
Iterator getMethodDescIterator ()
MethodDesc getMethodDesc (int index)
List getSecurityRoleRefDescList ()
int getPoolMin ()
int getCacheMax ()
String getRunAsRole ()
int getTimerTxAttribute ()
String getEjbTimeoutSignature ()
BeanFactory getBeanFactory ()
void setBeanFactory (BeanFactory factory)
String toString ()
String getFullWrpRemoteName ()
String getFullWrpLocalName ()
String getWrpRemoteName ()
String getWrpLocalName ()
String getFullWrpHandleName ()
String getWrpHandleName ()
String getFullWrpHomeName ()
String getFullWrpLocalHomeName ()
String getWrpHomeName ()
String getWrpLocalHomeName ()
String getFullDerivedBeanName ()
String getDerivedBeanName ()
DeploymentDesc getDeploymentDesc ()
void setDeploymentDesc (DeploymentDesc deploymentDesc)
String getRunAsPrincipalName ()
boolean hasDefinedLocalInterface ()
SasComponent getSasComponent ()
void setSasComponent (SasComponent sasComponent)

Protected Member Functions

void loadExtraClasses (CommonEjb ce, ClassLoader loader) throws DeploymentDescException
int addEJBMethodDesc (int len) throws DeploymentDescException
Class getParentClass (String intfType) throws DeploymentDescException
String getHashCodeForIdentifier ()
String getIdentifier ()
abstract void checkTxAttribute (MethodDesc md) throws DeploymentDescException
void verifyRoleName (AssemblyDescriptor asd) throws DeploymentDescException
MethodDesc newMethodDescInstance (java.lang.reflect.Method meth, int index)
MethodDesc addMethodDesc (java.lang.reflect.Method meth)

Protected Attributes

String ejbName = null
String jndiName = null
String jndiLocalName = null
Class home = null
Class remote = null
Class localhome = null
Class local = null
Class ejbClass = null
Properties ejb10EnvProps = new Properties()
Logger logger = null
List securityRoleRefDescList = null
DeploymentDesc deploymentDesc = null
String fullDerivedBeanName = null
String derivedBeanName = null
int poolMin = 0
int cacheMax = 0
BeanFactory bf = null

Static Protected Attributes

final int BEAN_TRANSACTION_TYPE = 1
final int CONTAINER_TRANSACTION_TYPE = 2

Detailed Description

Class to hold meta-information related to any enterprise-beans

Author:
Christophe Ney [cney@batisseurs.com] : Initial developer

Helene Joanin

Jeff Mesnil

Philippe Coq

Florent Benoit & Ludovic Bert : ejb_link

Definition at line 98 of file BeanDesc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc ClassLoader  classLoader,
CommonEjb  ejb,
JonasCommonEjb  jonasEjb,
AssemblyDescriptor  asd,
JLinkedList  jMDRList,
String  fileName
throws DeploymentDescException
 

Constructor to be used by parent node

Parameters:
classLoader ClassLoader used to load Bean's classes
ejb XML Element from standard Deployment Descriptor
jonasEjb XML Element from jonas specific Deployment Descriptor
asd XML Element for the AssemblyDescriptor
fileName jar filename
Exceptions:
DeploymentDescException when BeanDesc cannot be instanciated (class loading problem, ...)

Definition at line 301 of file BeanDesc.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.addEJBMethodDesc(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.addMethodDesc(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.checkRemoteException(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejb10EnvProps, org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejbClass, org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejbName, org.objectweb.jonas_ejb.deployment.api.MethodDesc.getMethod(), org.objectweb.jonas_lib.deployment.api.EnvEntryDesc.getName(), org.objectweb.jonas_lib.deployment.xml.SecurityRole.getRoleName(), org.objectweb.jonas_lib.deployment.xml.RunAs.getRoleName(), org.objectweb.jonas_lib.deployment.api.EnvEntryDesc.getValue(), org.objectweb.jonas_lib.deployment.api.EnvEntryDesc.hasValue(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.home, org.objectweb.jonas_ejb.deployment.api.BeanDesc.jndiLocalName, org.objectweb.jonas_ejb.deployment.api.BeanDesc.jndiName, org.objectweb.jonas_ejb.deployment.api.BeanDesc.loadExtraClasses(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.local, org.objectweb.jonas_ejb.deployment.api.BeanDesc.localhome, org.objectweb.jonas_ejb.deployment.api.BeanDesc.remote, org.objectweb.jonas_ejb.deployment.api.BeanDesc.securityRoleRefDescList, and org.objectweb.jonas_lib.deployment.api.EnvEntryDesc.toString().

Here is the call graph for this function:


Member Function Documentation

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.addEJBMethodDesc int  len  )  throws DeploymentDescException [protected]
 

Permit Methods addition from subtypes Protected method that need to be overridden in subclasses

Parameters:
len method array length
Returns:
new len value
Exceptions:
DeploymentDescException when java reflection cannot be used on classes

Reimplemented in org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.

Definition at line 775 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

MethodDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.addMethodDesc java.lang.reflect.Method  meth  )  [protected]
 

Add a new method descriptor to the bean

Parameters:
meth method to add inside MethodDescs list
Returns:
the constructed MethodDesc

Definition at line 1260 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.addEJBMethodDesc(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.check  )  throws DeploymentDescException
 

Check that the bean descriptor is valid

Exceptions:
DeploymentDescException thrown for non-valid bean

Reimplemented in org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc, org.objectweb.jonas_ejb.deployment.api.SessionDesc, and org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.

Definition at line 906 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2().

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.checkRemoteException java.lang.reflect.Method  m,
boolean  shouldThrow
throws DeploymentDescException
 

Check if method throws RemoteException (or not).

Parameters:
m the method to examine
shouldThrow boolean value indicating if the method should or shouldn't throw RemoteException
Exceptions:
DeploymentDescException thrown for non-valid method

Definition at line 850 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.addEJBMethodDesc(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.checkRunAsMapping  )  throws DeploymentDescException
 

Check that the runAs role mapping is correct

Exceptions:
DeploymentDescException if role mapping is incorrect

Definition at line 918 of file BeanDesc.java.

abstract void org.objectweb.jonas_ejb.deployment.api.BeanDesc.checkTxAttribute MethodDesc  md  )  throws DeploymentDescException [protected, pure virtual]
 

Check that trans-attribute is valid for a bean's method.

Parameters:
md MethodDesc to check
Exceptions:
DeploymentDescException When MethodDesc is not valid

Implemented in org.objectweb.jonas_ejb.deployment.api.EntityDesc, org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc, and org.objectweb.jonas_ejb.deployment.api.SessionDesc.

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.checkValidTypesForRmi java.lang.reflect.Method  m  ) 
 

Check if argument and return types are valid types for RMI-IIOP. (Primitive types, remote objects, or non-remote objects that implement the java.io.Serializable interface) Only a warning is logging if it's not the case.

Parameters:
m the methode to examine

Definition at line 879 of file BeanDesc.java.

BeanFactory org.objectweb.jonas_ejb.deployment.api.BeanDesc.getBeanFactory  ) 
 

Returns:
the BeanFactory, if the bean has been loaded.

Definition at line 1153 of file BeanDesc.java.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer().

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.getCacheMax  ) 
 

Returns:
max size of the cache

Definition at line 1125 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), org.objectweb.jonas_ejb.container.JMdbFactory.JMdbFactory(), org.objectweb.jonas_ejb.container.JStatelessFactory.JStatelessFactory(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

DeploymentDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.getDeploymentDesc  ) 
 

Returns:
Returns the parent deployment descriptor

Definition at line 1354 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.EjbqlQueryTreeHolder(), and org.objectweb.jonas_ejb.genic.VcParam.VcParam().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getDerivedBeanName  ) 
 

Returns:
Returns the name of the derived class of the bean

Definition at line 1347 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

Properties org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjb10Environment  ) 
 

Get bean's EJB 1.0 environment properties.

Returns:
Returns the bean's EJB 1.0 environment properties

Definition at line 1066 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.init().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbClass  ) 
 

Get bean's class. Used by GenIC and Server

Returns:
Class for the bean

Definition at line 1057 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.EntityCmpDesc(), and org.objectweb.jonas_ws.deployment.api.SSBPortComponentDesc.setSessionStatelessDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName  ) 
 

Get the enterprise bean's name.

Returns:
Name of the bean

Definition at line 987 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JContainer.addBean(), org.objectweb.jonas_ejb.deployment.api.SessionDesc.checkTxAttribute(), org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc.checkTxAttribute(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.checkTxAttribute(), org.objectweb.jonas.container.EJBServiceImpl.createContainer(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2(), org.objectweb.jonas_lib.genbase.archive.Ejb.Ejb(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.EntityDesc(), org.objectweb.jonas_ejb.genidl.GenIDL.GenIDL(), org.objectweb.jonas_ejb.genic.BeanSources.getEjbName(), org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getJndiName(), org.objectweb.jonas_ejb.container.jorm.JormFactory.init(), org.objectweb.jonas_ejb.container.JFactory.init(), org.objectweb.jonas_lib.genbase.archive.EjbJar.initialize(), org.objectweb.jonas_ejb.container.JMdbFactory.JMdbFactory(), org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc.MessageDrivenDesc(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.SessionStatelessDesc(), org.objectweb.jonas_ejb.genic.VcMethod.VcMethod(), and org.objectweb.jonas_ejb.genic.VcParam.VcParam().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbTimeoutSignature  ) 
 

Returns:
the security signature for the ejbTimeout method

Definition at line 1146 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.init().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullDerivedBeanName  ) 
 

Returns:
Returns the full name of the derived class of the bean

Definition at line 1340 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.genic.VcCMRField.getHelperFQClassName(), org.objectweb.jonas_ejb.genic.VcCMRField.getOppositeHelperFQClassName(), and org.objectweb.jonas_ejb.container.JFactory.init().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpHandleName  ) 
 

Returns:
Returns the full name of the Handle class for the bean

Definition at line 1298 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpHomeName  ) 
 

Returns:
Returns the full name of the wrapper home class for the bean

Definition at line 1312 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.genic.BeanSources.getWrpHomeClassName(), org.objectweb.jonas_ejb.container.JFactory.init(), org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JSessionFactory.JSessionFactory().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpLocalHomeName  ) 
 

Returns:
Returns the full name of the wrapper local home class for the bean

Definition at line 1319 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.container.JFactory.init(), org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JSessionFactory.JSessionFactory().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpLocalName  ) 
 

Returns:
Returns the full name of the wrapper class for the bean

Definition at line 1277 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpRemoteName  ) 
 

Returns:
Returns the full name of the wrapper class for the bean

Definition at line 1270 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), and org.objectweb.jonas_ejb.genic.BeanSources.getWrpRemoteClassName().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getHashCodeForIdentifier  )  [protected]
 

Gets an hashcode for this bean Return hashcode for jndiname + jndi localname

Returns:
a string for hashcode for jndiname + jndi localname

Definition at line 810 of file BeanDesc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.toString().

Here is the call graph for this function:

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getHomeClass  ) 
 

Get bean's home interface. Invoking this method is disallowed for message driven bean. Used by GenIC and Server

Returns:
Class for the home interface or null

Definition at line 1018 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.genidl.GenIDL.GenIDL(), and org.objectweb.jonas_ejb.container.JHome.getEJBMetaData().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getIdentifier  )  [protected]
 

Build a valid java identifier for the bean.

Returns:
Returns a valid java identifier from the bean.

Definition at line 825 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.EntityCmpDesc(), and org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.SessionStatelessDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiLocalName  ) 
 

Get the name to associate with the enterprise Bean in the JNDI name space for local access (inside the same JOnAS Server)

Returns:
Jndi local name of the bean

Definition at line 1008 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getJndiName(), org.objectweb.jonas_ejb.container.JLocalHome.register(), and org.objectweb.jonas_ejb.container.JLocalHome.unregister().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiName  ) 
 

Get the name to associate with the enterprise Bean in the JNDI name space. Invoking this method is disallowed for message driven bean. (This information is JOnAS specific). Used by Server

Returns:
Jndi name of the bean

Definition at line 998 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JHome.getHomeHandle(), org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getJndiName(), org.objectweb.jonas_ejb.container.JHome.getJndiName(), org.objectweb.jonas_ejb.container.JHome.register(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.SessionStatelessDesc(), and org.objectweb.jonas_ejb.container.JHome.unregister().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalClass  ) 
 

Get bean's local interface. Invoking this method is disallowed for message driven bean. Used by GenIC and Server

Returns:
Class for the Local interface or null

Definition at line 1048 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDescWithLocalInterface(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setTargetBean().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalHomeClass  ) 
 

Get bean's local home interface. Invoking this method is disallowed for message driven bean. Used by GenIC and Server

Returns:
Class for the home interface or null

Definition at line 1038 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2().

MethodDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDesc int  index  ) 
 

get a MethodDesc from its index.

Parameters:
index MethodDesc index
Returns:
Returns a MethodDesc from its index

Definition at line 1101 of file BeanDesc.java.

MethodDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDesc java.lang.reflect.Method  method  ) 
 

Get descriptor attached to a given method. Used by GenIC and JMdbEndpointFactory

Parameters:
method Method from the Home/Remote/MessageListener interface
Returns:
The method descriptor (never returns null)

Definition at line 1077 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.VContextFactory.create(), and org.objectweb.jonas_ejb.container.JMdbEndpointFactory.isDeliveryTransacted().

Iterator org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDescIterator  ) 
 

get an iterator for all MethodDesc of the bean.

Returns:
Returns an iterator for all MethodDesc of the bean

Definition at line 1090 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.EntityCmp2Desc(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.EntityDesc(), org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp1Desc.EntityJdbcCmp1Desc(), org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc.MessageDrivenDesc(), and org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.SessionStatelessDesc().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getParentClass String  intfType  )  throws DeploymentDescException [protected]
 

Returns the parent Class for a method given an interface type.

Parameters:
intfType type of the interface (Home/Remote/LocalHome/Local or ServiceEndpoint)
Returns:
the parent class for a method given an interface type
Exceptions:
DeploymentDescException when intfType is unknown

Reimplemented in org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.

Definition at line 789 of file BeanDesc.java.

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.getPoolMin  ) 
 

Returns:
min size of the pool

Definition at line 1118 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), org.objectweb.jonas_ejb.container.JMdbFactory.JMdbFactory(), org.objectweb.jonas_ejb.container.JStatelessFactory.JStatelessFactory(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRemoteClass  ) 
 

Get bean's remote interface. Invoking this method is disallowed for message driven bean. Used by GenIC and Server

Returns:
Class for the remote interface or null

Definition at line 1028 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), org.objectweb.jonas_ejb.genic.VContextFactory.create(), org.objectweb.jonas_ejb.genidl.GenIDL.GenIDL(), and org.objectweb.jonas_ejb.container.JHome.getEJBMetaData().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRunAsPrincipalName  ) 
 

Returns:
the runAs principal name.

Definition at line 1427 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.checkSecurity().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRunAsRole  ) 
 

Returns:
the run-as role name

Definition at line 1132 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.JMessageEndpoint.getCallerPrincipal(), org.objectweb.jonas_ejb.container.JContext.getCallerPrincipal(), org.objectweb.jonas_ejb.container.JContext.isCallerInRole(), and org.objectweb.jonas_ejb.container.JFactory.postInvoke().

SasComponent org.objectweb.jonas_ejb.deployment.api.BeanDesc.getSasComponent  ) 
 

Returns:
the sasComponent.

Definition at line 1520 of file BeanDesc.java.

Referenced by org.objectweb.jonas.security.iiop.Csiv2IorInterceptor.establish_components(), and org.objectweb.jonas_ejb.container.JHome.register().

List org.objectweb.jonas_ejb.deployment.api.BeanDesc.getSecurityRoleRefDescList  ) 
 

Gets the security-role-ref of the beans can access to the EJBRoleRefPermission and role-link.

Returns:
the security-role-ref of the beans

Definition at line 1111 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JContext.isCallerInRole(), and org.objectweb.jonas_ejb.container.PermissionManager.translateEjbSecurityRoleRef().

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.getTimerTxAttribute  ) 
 

Returns:
the transaction attribute for the ejbTimeout method

Definition at line 1139 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.init().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpHandleName  ) 
 

Returns:
Returns the name of the Handle class for the bean

Definition at line 1305 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpHomeName  ) 
 

Returns:
Returns the name of the wrapper home class for the bean

Definition at line 1326 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpLocalHomeName  ) 
 

Returns:
Returns the name of the wrapper local home class for the bean

Definition at line 1333 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpLocalName  ) 
 

Returns:
Returns the name of the wrapper class for the bean

Definition at line 1291 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.getWrpRemoteName  ) 
 

Returns:
Returns the name of the wrapper class for the bean

Definition at line 1284 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.genic.VContextFactory.create().

boolean org.objectweb.jonas_ejb.deployment.api.BeanDesc.hasDefinedLocalInterface  ) 
 

Returns:
true if local interface has been defined in the DD

Definition at line 1434 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JContext.getEJBLocalHome().

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.loadExtraClasses CommonEjb  ce,
ClassLoader  loader
throws DeploymentDescException [protected]
 

Permit classes loading from subtypes. (needed for Stateless Session Beans with service-endpoints). Needs to be overridden in subtypes.

Parameters:
ce XML Element representing EJB Descriptor
loader ClassLoader used to load classes
Exceptions:
DeploymentDescException when a class cannot be loaded

Reimplemented in org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.

Definition at line 761 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

MethodDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.newMethodDescInstance java.lang.reflect.Method  meth,
int  index
[protected]
 

MethodDesc constructor factory method to ovewrite

Parameters:
meth the method to be wrapped into a MethodDesc instance
index index of the method inside the MethodDesc List
Returns:
Returns a new MethodDesc (or subclass)

Definition at line 1249 of file BeanDesc.java.

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.setBeanFactory BeanFactory  factory  ) 
 

Set the BeanFactory, when the bean is loaded in container.

Parameters:
factory The bean factory

Definition at line 1161 of file BeanDesc.java.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer().

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.setDeploymentDesc DeploymentDesc  deploymentDesc  ) 
 

Set the parent deployment descriptor

Parameters:
deploymentDesc parent DeploymentDesc

Definition at line 1363 of file BeanDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getLogger().

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.setSasComponent SasComponent  sasComponent  ) 
 

Parameters:
sasComponent The sasComponent to set.

Definition at line 1526 of file BeanDesc.java.

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.toString  ) 
 

String representation of the object for test purpose

Returns:
String representation of this object

Reimplemented in org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc, org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc, org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc, org.objectweb.jonas_ejb.deployment.api.EntityDesc, org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp1Desc, org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc, org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc, and org.objectweb.jonas_ejb.deployment.api.SessionDesc.

Definition at line 1170 of file BeanDesc.java.

References org.objectweb.jonas_lib.deployment.api.SecurityRoleRefDesc.getRoleLink(), org.objectweb.jonas_lib.deployment.api.SecurityRoleRefDesc.getRoleName(), and org.objectweb.jonas_ejb.deployment.api.MethodDesc.toString().

Referenced by org.objectweb.jonas_ejb.deployment.api.MethodDesc.toString(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.toString().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.deployment.api.BeanDesc.verifyRoleName AssemblyDescriptor  asd  )  throws DeploymentDescException [protected]
 

Check that there are always corresponding role-name element in security-role and method-permission elements.

Parameters:
asd the AssemblyDescriptor used to check bean's role names
Exceptions:
DeploymentDescException When verification fails

Definition at line 956 of file BeanDesc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.getRoleName(), and org.objectweb.jonas_ejb.deployment.xml.MethodPermission.getRoleNameList().

Here is the call graph for this function:


Member Data Documentation

final int org.objectweb.jonas_ejb.deployment.api.BeanDesc.BEAN_TRANSACTION_TYPE = 1 [static, protected]
 

Bean transaction type

Definition at line 103 of file BeanDesc.java.

BeanFactory org.objectweb.jonas_ejb.deployment.api.BeanDesc.bf = null [protected]
 

BeanFactory when the bean has been loaded.

Definition at line 287 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JLocalHome.JLocalHome(), and org.objectweb.jonas_ejb.container.JServiceEndpointHome.JServiceEndpointHome().

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.cacheMax = 0 [protected]
 

Maximum Bean Cache size

Definition at line 273 of file BeanDesc.java.

final int org.objectweb.jonas_ejb.deployment.api.BeanDesc.CONTAINER_TRANSACTION_TYPE = 2 [static, protected]
 

Container transaction type

Definition at line 108 of file BeanDesc.java.

DeploymentDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc.deploymentDesc = null [protected]
 

DeploymentDesc parent of this BeanDesc

Definition at line 193 of file BeanDesc.java.

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.derivedBeanName = null [protected]
 

Bean classname

Definition at line 253 of file BeanDesc.java.

Properties org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejb10EnvProps = new Properties() [protected]
 

EJB 1.0 Environment as Properties

Definition at line 168 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejbClass = null [protected]
 

Bean Class

Definition at line 163 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.ejbName = null [protected]
 

name of the Bean

Definition at line 128 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.fullDerivedBeanName = null [protected]
 

Bean fully qualified classname

Definition at line 248 of file BeanDesc.java.

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.home = null [protected]
 

Home Class

Definition at line 143 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.jndiLocalName = null [protected]
 

JNDI local name of the Bean

Definition at line 138 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

String org.objectweb.jonas_ejb.deployment.api.BeanDesc.jndiName = null [protected]
 

JNDI name of the Bean

Definition at line 133 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.local = null [protected]
 

Local Class

Definition at line 158 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.localhome = null [protected]
 

LocalHome Class

Definition at line 153 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

Logger org.objectweb.jonas_ejb.deployment.api.BeanDesc.logger = null [protected]
 

logger

Definition at line 173 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.container.jorm.MedorFactory.init(), org.objectweb.jonas_ejb.container.JEntityFactory.init(), org.objectweb.jonas_ejb.container.JContext.isCallerInRole(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.setLogger().

int org.objectweb.jonas_ejb.deployment.api.BeanDesc.poolMin = 0 [protected]
 

Minimum Bean Pool size

Definition at line 268 of file BeanDesc.java.

Class org.objectweb.jonas_ejb.deployment.api.BeanDesc.remote = null [protected]
 

Remote Class

Definition at line 148 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().

List org.objectweb.jonas_ejb.deployment.api.BeanDesc.securityRoleRefDescList = null [protected]
 

List of SecurityRoleRefDesc for JACC

Definition at line 188 of file BeanDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.BeanDesc().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:06 2005 for JOnAS by  doxygen 1.3.9.1