|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.DescriptionGroupDesc org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc org.ow2.jonas.deployment.ejb.BeanDesc
public abstract class BeanDesc
Class to hold meta-information related to any enterprise-beans
Field Summary | |
---|---|
protected static int |
BEAN_TRANSACTION_TYPE
Bean transaction type |
protected String |
beanIdentification
bean identification string |
protected int |
cacheMax
Maximum Bean Cache size |
protected boolean |
clusterReplicated
Cluster - true if the bean has to be replicated |
protected static int |
CONTAINER_TRANSACTION_TYPE
Container transaction type |
protected DeploymentDesc |
deploymentDesc
DeploymentDesc parent of this BeanDesc |
protected String |
derivedBeanName
Bean classname |
protected Properties |
ejb10EnvProps
EJB 1.0 Environment as Properties |
protected Class |
ejbClass
Bean Class |
protected String |
ejbName
name of the Bean |
protected String |
ejbTimeoutSignature
|
protected String |
fullDerivedBeanName
Bean fully qualified classname |
static String |
GENERATED_PREFIX
Package prefix for generated files |
protected Class |
home
Home Class |
protected String |
jndiLocalName
JNDI local name of the Bean |
protected String |
jndiName
JNDI name of the Bean |
protected Class |
local
Local Class |
protected Class |
localhome
LocalHome Class |
protected int |
poolMin
Minimum Bean Pool size |
protected Class |
remote
Remote Class |
protected List |
securityRoleRefDescList
List of SecurityRoleRefDesc for JACC |
protected int |
timerTxAttribute
|
protected static String[] |
TRANS
|
Fields inherited from class org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc |
---|
logger |
Fields inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc |
---|
description, displayName, largeIcon, smallIcon |
Constructor Summary | |
---|---|
BeanDesc(ClassLoader classLoader,
CommonEjb ejb,
JonasCommonEjb jonasEjb,
AssemblyDescriptor asd,
JLinkedList jMDRList,
String fileName)
Constructor to be used by parent node |
Method Summary | |
---|---|
protected int |
addEJBMethodDesc(int len)
Permit Methods addition from subtypes Protected method that need to be overridden in subclasses |
protected MethodDesc |
addMethodDesc(Method meth,
Class classDef)
Add a new method descriptor to the bean |
void |
check()
Check that the bean descriptor is valid |
void |
checkRemoteException(Method m,
boolean shouldThrow)
Check if method throws RemoteException (or not). |
void |
checkRunAsMapping()
Check that the runAs role mapping is correct |
protected abstract void |
checkTxAttribute(MethodDesc md)
Check that trans-attribute is valid for a bean's method. |
void |
checkValidTypesForRmi(Method m)
Check if argument and return types are valid types for RMI-IIOP. |
int |
getCacheMax()
|
Object |
getCluster()
|
DeploymentDesc |
getDeploymentDesc()
|
String |
getDerivedBeanName()
|
Properties |
getEjb10Environment()
Get bean's EJB 1.0 environment properties. |
Class |
getEjbClass()
Get bean's class. |
String |
getEjbName()
Get the enterprise bean's name. |
String |
getEjbTimeoutSignature()
|
String |
getFullDerivedBeanName()
|
String |
getFullWrpHandleName()
|
String |
getFullWrpHomeName()
|
String |
getFullWrpLocalHomeName()
|
String |
getFullWrpLocalName()
|
String |
getFullWrpRemoteName()
|
protected String |
getHashCodeForIdentifier()
Gets an hashcode for this bean Return hashcode for jndiname + jndi localname |
Class |
getHomeClass()
Get bean's home interface. |
String |
getIdentifier()
Build a valid java identifier for the bean. |
String |
getJndiLocalName()
Get the name to associate with the enterprise Bean in the JNDI name space for local access (inside the same JOnAS Server) |
String |
getJndiName()
Get the name to associate with the enterprise Bean in the JNDI name space. |
Class |
getLocalClass()
Get bean's local interface. |
Class |
getLocalHomeClass()
Get bean's local home interface. |
MethodDesc |
getMethodDesc(int index)
get a MethodDesc from its index. |
MethodDesc |
getMethodDesc(Method method)
Get descriptor attached to a given method. |
Iterator |
getMethodDescIterator()
get an iterator for all MethodDesc of the bean. |
protected Class |
getParentClass(String intfType)
Returns the parent Class for a method given an interface type. |
int |
getPoolMin()
|
Class |
getRemoteClass()
Get bean's remote interface. |
String |
getRunAsPrincipalName()
|
String |
getRunAsRole()
|
org.ow2.carol.util.csiv2.SasComponent |
getSasComponent()
|
List |
getSecurityRoleRefDescList()
Gets the security-role-ref of the beans can access to the EJBRoleRefPermission and role-link. |
int |
getTimerTxAttribute()
|
String |
getWrpHandleName()
|
String |
getWrpHomeName()
|
String |
getWrpLocalHomeName()
|
String |
getWrpLocalName()
|
String |
getWrpRemoteName()
|
boolean |
hasDefinedLocalInterface()
|
boolean |
isClusterReplicated()
|
protected void |
loadExtraClasses(CommonEjb ce,
ClassLoader loader)
Permit classes loading from subtypes. |
protected MethodDesc |
newMethodDescInstance(Method meth,
Class classDef,
int index)
MethodDesc constructor factory method to ovewrite |
void |
setCluster(Object cluster)
|
void |
setClusterReplicated(boolean replicated)
Set the cluster replicated attribute |
void |
setDeploymentDesc(DeploymentDesc deploymentDesc)
Set the parent deployment descriptor |
void |
setJndiLocalName(String jndiLocalName)
Set the name to associate with the enterprise Bean in the JNDI name space for local access (inside the same JOnAS Server) |
void |
setJndiName(String jndiName)
Set the name to associate with the enterprise Bean in the JNDI name space. |
void |
setSasComponent(org.ow2.carol.util.csiv2.SasComponent sasComponent)
|
String |
toString()
String representation of the object for test purpose |
protected void |
verifyRoleName(AssemblyDescriptor asd)
Check that there are always corresponding role-name element in security-role and method-permission elements. |
Methods inherited from class org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc |
---|
getEjbLocalRefDesc, getEjbRefDesc, getENCBindingHolder, getEnvEntryDesc, getMessageDestinationRefDesc, getPersistenceUnitRefs, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc, setENCBindingHolder |
Methods inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc |
---|
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon |
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 String[] TRANS
public static final String GENERATED_PREFIX
protected String ejbName
protected String jndiName
protected String jndiLocalName
protected Class home
protected Class remote
protected Class localhome
protected Class local
protected Class ejbClass
protected String beanIdentification
protected Properties ejb10EnvProps
protected List securityRoleRefDescList
protected DeploymentDesc deploymentDesc
protected String fullDerivedBeanName
protected String derivedBeanName
protected int poolMin
protected int cacheMax
protected int timerTxAttribute
protected String ejbTimeoutSignature
protected boolean clusterReplicated
Constructor Detail |
---|
public BeanDesc(ClassLoader classLoader, CommonEjb ejb, JonasCommonEjb jonasEjb, AssemblyDescriptor asd, JLinkedList jMDRList, String fileName) throws DeploymentDescException
classLoader
- ClassLoader used to load Bean's classesejb
- XML Element from standard Deployment DescriptorjonasEjb
- XML Element from jonas specific Deployment Descriptorasd
- XML Element for the AssemblyDescriptorfileName
- jar filename
DeploymentDescException
- when BeanDesc cannot be instanciated
(class loading problem, ...)Method Detail |
---|
protected void loadExtraClasses(CommonEjb ce, ClassLoader loader) throws DeploymentDescException
ce
- XML Element representing EJB Descriptorloader
- ClassLoader used to load classes
DeploymentDescException
- when a class cannot be loadedprotected int addEJBMethodDesc(int len) throws DeploymentDescException
len
- method array length
DeploymentDescException
- when java reflection cannot be used on
classesprotected Class getParentClass(String intfType) throws DeploymentDescException
intfType
- type of the interface (Home/Remote/LocalHome/Local or
ServiceEndpoint)
DeploymentDescException
- when intfType is unknownprotected String getHashCodeForIdentifier()
public String getIdentifier()
public void checkRemoteException(Method m, boolean shouldThrow) throws DeploymentDescException
m
- the method to examineshouldThrow
- boolean value indicating if the method should or
shouldn't throw RemoteException
DeploymentDescException
- thrown for non-valid methodpublic void checkValidTypesForRmi(Method m)
m
- the methode to examinepublic void check() throws DeploymentDescException
DeploymentDescException
- thrown for non-valid beanpublic void checkRunAsMapping() throws DeploymentDescException
DeploymentDescException
- if role mapping is incorrectprotected abstract void checkTxAttribute(MethodDesc md) throws DeploymentDescException
md
- MethodDesc to check
DeploymentDescException
- When MethodDesc is not validprotected void verifyRoleName(AssemblyDescriptor asd) throws DeploymentDescException
asd
- the AssemblyDescriptor used to check bean's role names
DeploymentDescException
- When verification failspublic String getEjbName()
public String getJndiName()
public void setJndiName(String jndiName)
jndiName
- Jndi name of the beanpublic String getJndiLocalName()
public void setJndiLocalName(String jndiLocalName)
jndiLocalName
- Jndi local name of the beanpublic Class getHomeClass()
public Class getRemoteClass()
public Class getLocalHomeClass()
public Class getLocalClass()
public Class getEjbClass()
public Properties getEjb10Environment()
public MethodDesc getMethodDesc(Method method)
method
- Method from the Home/Remote/MessageListener interface
public Iterator getMethodDescIterator()
public MethodDesc getMethodDesc(int index)
index
- MethodDesc index
public List getSecurityRoleRefDescList()
public int getPoolMin()
public int getCacheMax()
public String getRunAsRole()
public int getTimerTxAttribute()
public String getEjbTimeoutSignature()
public String toString()
toString
in interface IDescriptionGroupDesc
toString
in class DescriptionGroupDesc
protected MethodDesc newMethodDescInstance(Method meth, Class classDef, int index)
meth
- the method to be wrapped into a MethodDesc instanceindex
- index of the method inside the MethodDesc List
protected MethodDesc addMethodDesc(Method meth, Class classDef)
meth
- method to add inside MethodDescs list
public String getFullWrpRemoteName()
public String getFullWrpLocalName()
public String getWrpRemoteName()
public String getWrpLocalName()
public String getFullWrpHandleName()
public String getWrpHandleName()
public String getFullWrpHomeName()
public String getFullWrpLocalHomeName()
public String getWrpHomeName()
public String getWrpLocalHomeName()
public String getFullDerivedBeanName()
public String getDerivedBeanName()
public DeploymentDesc getDeploymentDesc()
public void setDeploymentDesc(DeploymentDesc deploymentDesc)
deploymentDesc
- parent DeploymentDescpublic String getRunAsPrincipalName()
public boolean hasDefinedLocalInterface()
public org.ow2.carol.util.csiv2.SasComponent getSasComponent()
public void setSasComponent(org.ow2.carol.util.csiv2.SasComponent sasComponent)
sasComponent
- The sasComponent to set.public boolean isClusterReplicated()
public void setClusterReplicated(boolean replicated)
replicated
- true if the replicated mode is enabledpublic Object getCluster()
public void setCluster(Object cluster)
cluster
- the cluster to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |