| |
|
| org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc org.objectweb.jonas_ejb.deployment.api.BeanDesc
All known Subclasses: org.objectweb.jonas_ejb.deployment.api.SessionDesc, org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc, org.objectweb.jonas_ejb.deployment.api.EntityDesc,
BeanDesc | abstract public class BeanDesc extends JndiEnvRefsGroupDesc (Code) | | Class to hold meta-information related to any enterprise-beans
author: Christophe Ney [cney@batisseurs.com] : Initial developer author: Helene Joanin author: Jeff Mesnil author: Philippe Coq author: Florent Benoit & Ludovic Bert : ejb_link |
BEAN_TRANSACTION_TYPE | final protected static int BEAN_TRANSACTION_TYPE(Code) | | Bean transaction type
|
CONTAINER_TRANSACTION_TYPE | final protected static int CONTAINER_TRANSACTION_TYPE(Code) | | Container transaction type
|
GENERATED_PREFIX | final public static String GENERATED_PREFIX(Code) | | Package prefix for generated files
|
beanIdentification | protected String beanIdentification(Code) | | bean identification string
|
cacheMax | protected int cacheMax(Code) | | Maximum Bean Cache size
|
clusterHomeDistributor | protected String clusterHomeDistributor(Code) | | Cluster - velocity template of the CMI class for the Home interface
|
clusterRemoteDistributor | protected String clusterRemoteDistributor(Code) | | Cluster - velocity template of the CMI class for the Remote interface
|
clusterReplicated | protected boolean clusterReplicated(Code) | | Cluster - true if the bean has to be replicated
|
derivedBeanName | protected String derivedBeanName(Code) | | Bean classname
|
ejb10EnvProps | protected Properties ejb10EnvProps(Code) | | EJB 1.0 Environment as Properties
|
ejbTimeoutSignature | protected String ejbTimeoutSignature(Code) | | |
fullDerivedBeanName | protected String fullDerivedBeanName(Code) | | Bean fully qualified classname
|
jndiLocalName | protected String jndiLocalName(Code) | | JNDI local name of the Bean
|
jndiName | protected String jndiName(Code) | | JNDI name of the Bean
|
localhome | protected Class localhome(Code) | | LocalHome Class
|
logger | protected Logger logger(Code) | | logger
|
poolMin | protected int poolMin(Code) | | Minimum Bean Pool size
|
securityRoleRefDescList | protected List securityRoleRefDescList(Code) | | List of SecurityRoleRefDesc for JACC
|
timerTxAttribute | protected int timerTxAttribute(Code) | | |
BeanDesc | public BeanDesc(ClassLoader classLoader, CommonEjb ejb, JonasCommonEjb jonasEjb, AssemblyDescriptor asd, JLinkedList jMDRList, String fileName) throws DeploymentDescException(Code) | | Constructor to be used by parent node
Parameters: classLoader - ClassLoader used to load Bean's classes Parameters: ejb - XML Element from standard Deployment Descriptor Parameters: jonasEjb - XML Element from jonas specific Deployment Descriptor Parameters: asd - XML Element for the AssemblyDescriptor Parameters: fileName - jar filename throws: DeploymentDescException - when BeanDesc cannot be instanciated(class loading problem, ...) |
addEJBMethodDesc | protected int addEJBMethodDesc(int len) throws DeploymentDescException(Code) | | Permit Methods addition from subtypes Protected method that need to be
overridden in subclasses
Parameters: len - method array length new len value throws: DeploymentDescException - when java reflection cannot be used onclasses |
checkRemoteException | public void checkRemoteException(java.lang.reflect.Method m, boolean shouldThrow) throws DeploymentDescException(Code) | | Check if method throws RemoteException (or not).
Parameters: m - the method to examine Parameters: shouldThrow - boolean value indicating if the method should orshouldn't throw RemoteException throws: DeploymentDescException - thrown for non-valid method |
checkValidTypesForRmi | public void checkValidTypesForRmi(java.lang.reflect.Method m)(Code) | | 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 |
getBeanFactory | public BeanFactory getBeanFactory()(Code) | | the BeanFactory, if the bean has been loaded. |
getCacheMax | public int getCacheMax()(Code) | | max size of the cache |
getClusterHomeDistributor | public String getClusterHomeDistributor()(Code) | | the velocity template of the cluster Distributor class for the home interface |
getClusterRemoteDistributor | public String getClusterRemoteDistributor()(Code) | | the velocity template of the cluster Distributor class for the remote interface |
getDeploymentDesc | public DeploymentDesc getDeploymentDesc()(Code) | | Returns the parent deployment descriptor |
getDerivedBeanName | public String getDerivedBeanName()(Code) | | Returns the name of the derived class of the bean |
getEjb10Environment | public Properties getEjb10Environment()(Code) | | Get bean's EJB 1.0 environment properties.
Returns the bean's EJB 1.0 environment properties |
getEjbClass | public Class getEjbClass()(Code) | | Get bean's class. Used by GenIC and Server
Class for the bean |
getEjbName | public String getEjbName()(Code) | | Get the enterprise bean's name.
Name of the bean |
getEjbTimeoutSignature | public String getEjbTimeoutSignature()(Code) | | the security signature for the ejbTimeout method |
getFullDerivedBeanName | public String getFullDerivedBeanName()(Code) | | Returns the full name of the derived class of the bean |
getFullWrpHandleName | public String getFullWrpHandleName()(Code) | | Returns the full name of the Handle class for the bean |
getFullWrpHomeName | public String getFullWrpHomeName()(Code) | | Returns the full name of the wrapper home class for the bean |
getFullWrpLocalHomeName | public String getFullWrpLocalHomeName()(Code) | | Returns the full name of the wrapper local home class for the bean |
getFullWrpLocalName | public String getFullWrpLocalName()(Code) | | Returns the full name of the wrapper class for the bean |
getFullWrpRemoteName | public String getFullWrpRemoteName()(Code) | | Returns the full name of the wrapper class for the bean |
getHashCodeForIdentifier | protected String getHashCodeForIdentifier()(Code) | | Gets an hashcode for this bean
Return hashcode for jndiname + jndi localname
a string for hashcode for jndiname + jndi localname |
getHomeClass | public Class getHomeClass()(Code) | | Get bean's home interface. Invoking this method is disallowed for message
driven bean. Used by GenIC and Server
Class for the home interface or null |
getIdentifier | public String getIdentifier()(Code) | | Build a valid java identifier for the bean.
Returns a valid java identifier from the bean. |
getJndiLocalName | public String getJndiLocalName()(Code) | | Get the name to associate with the enterprise Bean in the JNDI name space
for local access (inside the same JOnAS Server)
Jndi local name of the bean |
getJndiName | public String getJndiName()(Code) | | 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
Jndi name of the bean |
getLocalClass | public Class getLocalClass()(Code) | | Get bean's local interface. Invoking this method is disallowed for
message driven bean. Used by GenIC and Server
Class for the Local interface or null |
getLocalHomeClass | public Class getLocalHomeClass()(Code) | | Get bean's local home interface. Invoking this method is disallowed for
message driven bean. Used by GenIC and Server
Class for the home interface or null |
getMethodDesc | public MethodDesc getMethodDesc(java.lang.reflect.Method method)(Code) | | Get descriptor attached to a given method. Used by GenIC and JMdbEndpointFactory
Parameters: method - Method from the Home/Remote/MessageListener interface The method descriptor (never returns null) |
getMethodDesc | public MethodDesc getMethodDesc(int index)(Code) | | get a MethodDesc from its index.
Parameters: index - MethodDesc index Returns a MethodDesc from its index |
getMethodDescIterator | public Iterator getMethodDescIterator()(Code) | | get an iterator for all MethodDesc of the bean.
Returns an iterator for all MethodDesc of the bean |
getParentClass | protected Class getParentClass(String intfType) throws DeploymentDescException(Code) | | Returns the parent Class for a method given an interface type.
Parameters: intfType - type of the interface (Home/Remote/LocalHome/Local orServiceEndpoint) the parent class for a method given an interface type throws: DeploymentDescException - when intfType is unknown |
getPoolMin | public int getPoolMin()(Code) | | min size of the pool |
getRemoteClass | public Class getRemoteClass()(Code) | | Get bean's remote interface. Invoking this method is disallowed for
message driven bean. Used by GenIC and Server
Class for the remote interface or null |
getRunAsPrincipalName | public String getRunAsPrincipalName()(Code) | | the runAs principal name. |
getRunAsRole | public String getRunAsRole()(Code) | | the run-as role name |
getSasComponent | public SasComponent getSasComponent()(Code) | | the sasComponent. |
getSecurityRoleRefDescList | public List getSecurityRoleRefDescList()(Code) | | Gets the security-role-ref of the beans can access to the
EJBRoleRefPermission and role-link.
the security-role-ref of the beans |
getTimerTxAttribute | public int getTimerTxAttribute()(Code) | | the transaction attribute for the ejbTimeout method |
getWrpHandleName | public String getWrpHandleName()(Code) | | Returns the name of the Handle class for the bean |
getWrpHomeName | public String getWrpHomeName()(Code) | | Returns the name of the wrapper home class for the bean |
getWrpLocalHomeName | public String getWrpLocalHomeName()(Code) | | Returns the name of the wrapper local home class for the bean |
getWrpLocalName | public String getWrpLocalName()(Code) | | Returns the name of the wrapper class for the bean |
getWrpRemoteName | public String getWrpRemoteName()(Code) | | Returns the name of the wrapper class for the bean |
hasDefinedLocalInterface | public boolean hasDefinedLocalInterface()(Code) | | true if local interface has been defined in the DD |
isClusterReplicated | public boolean isClusterReplicated()(Code) | | true if the bean has to be replicated over the cluster |
loadExtraClasses | protected void loadExtraClasses(CommonEjb ce, ClassLoader loader) throws DeploymentDescException(Code) | | 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 Parameters: loader - ClassLoader used to load classes throws: DeploymentDescException - when a class cannot be loaded |
newMethodDescInstance | protected MethodDesc newMethodDescInstance(java.lang.reflect.Method meth, Class classDef, int index)(Code) | | MethodDesc constructor factory method to ovewrite
Parameters: meth - the method to be wrapped into a MethodDesc instance Parameters: index - index of the method inside the MethodDesc List Returns a new MethodDesc (or subclass) |
setBeanFactory | public void setBeanFactory(BeanFactory factory)(Code) | | Set the BeanFactory, when the bean is loaded in container.
Parameters: factory - The bean factory |
setClusterReplicated | public void setClusterReplicated(boolean replicated)(Code) | | Set the cluster replicated attribute
Parameters: replicated - true if the replicated mode is enabled |
setDeploymentDesc | public void setDeploymentDesc(DeploymentDesc deploymentDesc)(Code) | | Set the parent deployment descriptor
Parameters: deploymentDesc - parent DeploymentDesc |
setSasComponent | public void setSasComponent(SasComponent sasComponent)(Code) | | Parameters: sasComponent - The sasComponent to set. |
toString | public String toString()(Code) | | String representation of the object for test purpose
String representation of this object |
|
|
|