|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.deployment.api.BeanDesc
Class to hold meta-information related to any enterprise-beans Contributor(s): Florent Benoit & Ludovic Bert : ejb_link Jeff Mesnil
Field Summary | |
protected static int |
BEAN_TRANSACTION_TYPE
|
protected static int |
CONTAINER_TRANSACTION_TYPE
|
protected DeploymentDesc |
deploymentDesc
|
protected java.lang.String |
derivedBeanName
|
protected java.lang.String |
displayName
|
protected java.util.Properties |
ejb10EnvProps
|
protected java.lang.Class |
ejbClass
|
protected java.util.Vector |
ejbLocalRefDesc
|
protected java.lang.String |
ejbName
|
protected java.util.Vector |
ejbRefDesc
|
protected java.util.Vector |
envEntryDesc
|
protected java.lang.String |
fullDerivedBeanName
|
protected java.lang.Class |
home
|
protected java.lang.String |
jndiName
|
protected java.lang.Class |
local
|
protected java.lang.Class |
localhome
|
protected java.lang.Class |
remote
|
protected java.util.Vector |
resourceEnvRefDesc
|
protected java.util.Vector |
resourceRefDesc
|
protected java.util.HashMap |
securityRoleRef
|
protected static java.lang.String[] |
TRANS
|
Constructor Summary | |
BeanDesc(java.lang.ClassLoader classLoader,
org.objectweb.jonas_ejb.deployment.xml.DisplayName displayname,
org.objectweb.jonas_ejb.deployment.xml.EjbName ejbname,
org.objectweb.jonas_ejb.deployment.xml.JndiName jndiname,
org.objectweb.jonas_ejb.deployment.xml.Home home,
org.objectweb.jonas_ejb.deployment.xml.Remote remote,
org.objectweb.jonas_ejb.deployment.xml.LocalHome localhome,
org.objectweb.jonas_ejb.deployment.xml.Local local,
org.objectweb.jonas_ejb.deployment.xml.EjbClass ejbClass,
java.util.List envEntryList,
java.util.List resourceRefList,
java.util.List jonasResourceList,
java.util.List resourceEnvRefList,
java.util.List jonasResourceEnvList,
java.util.List ejbRefList,
java.util.List jonasEjbRefList,
java.util.List ejbLocalRefList,
java.util.List securityRoleRefList,
org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd)
constructor to be used by parent node |
Method Summary | |
protected MethodDesc |
addMethodDesc(java.lang.reflect.Method meth)
add a new method descriptor to the bean |
void |
check()
Check that the bean descriptor is valid |
void |
checkRemoteException(java.lang.reflect.Method m,
boolean shouldThrow)
Check if method throws RemoteException |
protected abstract void |
checkTxAttribute(MethodDesc md)
check that trans-attribute is valid for bean |
DeploymentDesc |
getDeploymentDesc()
get the parent deployment descriptor |
java.lang.String |
getDerivedBeanName()
returns the name of the derived class of the bean |
java.lang.String |
getDisplayName()
Get the displayName of the bean. |
java.util.Properties |
getEjb10Environment()
Get bean's EJB 1.0 environment properties |
java.lang.Class |
getEjbClass()
Get bean's class. |
EjbLocalRefDesc[] |
getEjbLocalRefDesc()
Get bean's ejb local references. |
java.lang.String |
getEjbName()
Get the enterprise bean's name. |
EjbRefDesc[] |
getEjbRefDesc()
Get bean's ejb references. |
EnvEntryDesc[] |
getEnvEntryDesc()
Get bean's environment entries. |
java.lang.String |
getFullDerivedBeanName()
returns the full name of the derived class of the bean |
java.lang.String |
getFullWrpHandleName()
returns the full name of the Handle class for the bean |
java.lang.String |
getFullWrpHomeName()
returns the full name of the wrapper home class for the bean |
java.lang.String |
getFullWrpLocalHomeName()
returns the full name of the wrapper local home class for the bean |
java.lang.String |
getFullWrpLocalName()
returns the full name of the wrapper class for the bean |
java.lang.String |
getFullWrpRemoteName()
returns the full name of the wrapper class for the bean |
java.lang.Class |
getHomeClass()
Get bean's home interface. |
protected java.lang.String |
getIdentifierFromEjbName(java.lang.String ejbName)
Build a valid java identifier from the ejb name |
java.lang.String |
getJndiLocalName()
Get the name to associate with the enterprise Bean in the JNDI name space for local access (inside the same JOnAS Server) |
java.lang.String |
getJndiName()
Get the name to associate with the enterprise Bean in the JNDI name space. |
java.lang.Class |
getLocalClass()
Get bean's local interface. |
java.lang.Class |
getLocalHomeClass()
Get bean's local home interface. |
MethodDesc |
getMethodDesc(int index)
get a MethodDesc from its index |
MethodDesc |
getMethodDesc(java.lang.reflect.Method method)
Deprecated. use getMethodDescIterator or getMethodDesc(int index) instead |
java.util.Iterator |
getMethodDescIterator()
get an iterator for all MethodDesc of the bean |
java.lang.Class |
getRemoteClass()
Get bean's remote interface. |
ResourceEnvRefDesc[] |
getResourceEnvRefDesc()
Get bean's resource environment references. |
ResourceRefDesc[] |
getResourceRefDesc()
Get bean's resource manager connection factory references. |
java.lang.String |
getRoleLink(java.lang.String roleName)
Get the role-link value corresponding to the role-name value of a security-role-ref element |
java.lang.String[] |
getSecurityRoleNames()
Get all the role names defined in the security-role-ref elements of the bean |
java.lang.String |
getWrpHandleName()
returns the name of the Handle class for the bean |
java.lang.String |
getWrpHomeName()
returns the name of the wrapper home class for the bean |
java.lang.String |
getWrpLocalHomeName()
returns the name of the wrapper local home class for the bean |
java.lang.String |
getWrpLocalName()
returns the name of the wrapper class for the bean |
java.lang.String |
getWrpRemoteName()
returns the name of the wrapper class for the bean |
protected MethodDesc |
newMethodDescInstance(java.lang.reflect.Method meth,
int index)
MethodDesc constructor factory method to ovewrite |
void |
setDeploymentDesc(DeploymentDesc deploymentDesc)
set the parent deployment descriptor |
java.lang.String |
toString()
String representation of the object for test purpose |
protected void |
verifyRoleName(org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd)
check that there are always corresponding role-name element in security-role and method-permission elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int BEAN_TRANSACTION_TYPE
protected static final int CONTAINER_TRANSACTION_TYPE
protected static final java.lang.String[] TRANS
protected java.lang.String displayName
protected java.lang.String ejbName
protected java.lang.String jndiName
protected java.lang.Class home
protected java.lang.Class remote
protected java.lang.Class localhome
protected java.lang.Class local
protected java.lang.Class ejbClass
protected java.util.Vector envEntryDesc
protected java.util.Properties ejb10EnvProps
protected java.util.Vector resourceEnvRefDesc
protected java.util.Vector resourceRefDesc
protected java.util.Vector ejbRefDesc
protected java.util.Vector ejbLocalRefDesc
protected java.util.HashMap securityRoleRef
protected DeploymentDesc deploymentDesc
protected java.lang.String fullDerivedBeanName
protected java.lang.String derivedBeanName
Constructor Detail |
public BeanDesc(java.lang.ClassLoader classLoader, org.objectweb.jonas_ejb.deployment.xml.DisplayName displayname, org.objectweb.jonas_ejb.deployment.xml.EjbName ejbname, org.objectweb.jonas_ejb.deployment.xml.JndiName jndiname, org.objectweb.jonas_ejb.deployment.xml.Home home, org.objectweb.jonas_ejb.deployment.xml.Remote remote, org.objectweb.jonas_ejb.deployment.xml.LocalHome localhome, org.objectweb.jonas_ejb.deployment.xml.Local local, org.objectweb.jonas_ejb.deployment.xml.EjbClass ejbClass, java.util.List envEntryList, java.util.List resourceRefList, java.util.List jonasResourceList, java.util.List resourceEnvRefList, java.util.List jonasResourceEnvList, java.util.List ejbRefList, java.util.List jonasEjbRefList, java.util.List ejbLocalRefList, java.util.List securityRoleRefList, org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd) throws DeploymentDescException
Method Detail |
protected java.lang.String getIdentifierFromEjbName(java.lang.String ejbName)
public void checkRemoteException(java.lang.reflect.Method m, boolean shouldThrow) throws DeploymentDescException
DeploymentDescException
- thrown for non-valid methodpublic void check() throws DeploymentDescException
DeploymentDescException
- thrown for non-valid beanprotected abstract void checkTxAttribute(MethodDesc md) throws DeploymentDescException
protected void verifyRoleName(org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd) throws DeploymentDescException
public java.lang.String getDisplayName()
public java.lang.String getEjbName()
public java.lang.String getJndiName()
public java.lang.String getJndiLocalName()
public java.lang.Class getHomeClass()
public java.lang.Class getRemoteClass()
public java.lang.Class getLocalHomeClass()
public java.lang.Class getLocalClass()
public java.lang.Class getEjbClass()
public EnvEntryDesc[] getEnvEntryDesc()
public java.util.Properties getEjb10Environment()
public ResourceEnvRefDesc[] getResourceEnvRefDesc()
public ResourceRefDesc[] getResourceRefDesc()
public EjbRefDesc[] getEjbRefDesc()
public EjbLocalRefDesc[] getEjbLocalRefDesc()
public MethodDesc getMethodDesc(java.lang.reflect.Method method)
method
- Method from the Home/Remote/MessageListener interfacepublic java.util.Iterator getMethodDescIterator()
public MethodDesc getMethodDesc(int index)
public java.lang.String getRoleLink(java.lang.String roleName)
roleName
- String corresponding to the role-name value of a security-role-ref elementpublic java.lang.String[] getSecurityRoleNames()
roleName
- String corresponding to the role-name value of a security-role-ref elementpublic java.lang.String toString()
toString
in class java.lang.Object
protected MethodDesc newMethodDescInstance(java.lang.reflect.Method meth, int index)
protected MethodDesc addMethodDesc(java.lang.reflect.Method meth)
public java.lang.String getFullWrpRemoteName()
public java.lang.String getFullWrpLocalName()
public java.lang.String getWrpRemoteName()
public java.lang.String getWrpLocalName()
public java.lang.String getFullWrpHandleName()
public java.lang.String getWrpHandleName()
public java.lang.String getFullWrpHomeName()
public java.lang.String getFullWrpLocalHomeName()
public java.lang.String getWrpHomeName()
public java.lang.String getWrpLocalHomeName()
public java.lang.String getFullDerivedBeanName()
public java.lang.String getDerivedBeanName()
public DeploymentDesc getDeploymentDesc()
public void setDeploymentDesc(DeploymentDesc deploymentDesc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |