Java Doc for BeanDesc.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » deployment » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas_ejb.deployment.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final protected static  intBEAN_TRANSACTION_TYPE
    
final protected static  intCONTAINER_TRANSACTION_TYPE
    
final public static  StringGENERATED_PREFIX
    
final protected static  String[]TRANS
    
protected  StringbeanIdentification
    
protected  BeanFactorybf
     BeanFactory when the bean has been loaded.
protected  intcacheMax
    
protected  StringclusterHomeDistributor
    
protected  StringclusterRemoteDistributor
    
protected  booleanclusterReplicated
    
protected  DeploymentDescdeploymentDesc
    
protected  StringderivedBeanName
    
protected  Propertiesejb10EnvProps
    
protected  ClassejbClass
    
protected  StringejbName
    
protected  StringejbTimeoutSignature
    
protected  StringfullDerivedBeanName
    
protected  Classhome
    
protected  StringjndiLocalName
    
protected  StringjndiName
    
protected  Classlocal
    
protected  Classlocalhome
    
protected  Loggerlogger
    
protected  intpoolMin
    
protected  Classremote
    
protected  ListsecurityRoleRefDescList
    
protected  inttimerTxAttribute
    

Constructor Summary
public  BeanDesc(ClassLoader classLoader, CommonEjb ejb, JonasCommonEjb jonasEjb, AssemblyDescriptor asd, JLinkedList jMDRList, String fileName)
    

Method Summary
protected  intaddEJBMethodDesc(int len)
    
protected  MethodDescaddMethodDesc(java.lang.reflect.Method meth, Class classDef)
    
public  voidcheck()
    
public  voidcheckRemoteException(java.lang.reflect.Method m, boolean shouldThrow)
     Check if method throws RemoteException (or not).
public  voidcheckRunAsMapping()
    
abstract protected  voidcheckTxAttribute(MethodDesc md)
     Check that trans-attribute is valid for a bean's method.
public  voidcheckValidTypesForRmi(java.lang.reflect.Method m)
     Check if argument and return types are valid types for RMI-IIOP.
public  BeanFactorygetBeanFactory()
    
public  intgetCacheMax()
    
public  StringgetClusterHomeDistributor()
    
public  StringgetClusterRemoteDistributor()
    
public  DeploymentDescgetDeploymentDesc()
    
public  StringgetDerivedBeanName()
    
public  PropertiesgetEjb10Environment()
     Get bean's EJB 1.0 environment properties.
public  ClassgetEjbClass()
     Get bean's class.
public  StringgetEjbName()
     Get the enterprise bean's name.
public  StringgetEjbTimeoutSignature()
    
public  StringgetFullDerivedBeanName()
    
public  StringgetFullWrpHandleName()
    
public  StringgetFullWrpHomeName()
    
public  StringgetFullWrpLocalHomeName()
    
public  StringgetFullWrpLocalName()
    
public  StringgetFullWrpRemoteName()
    
protected  StringgetHashCodeForIdentifier()
    
public  ClassgetHomeClass()
     Get bean's home interface.
public  StringgetIdentifier()
     Build a valid java identifier for the bean.
public  StringgetJndiLocalName()
    
public  StringgetJndiName()
     Get the name to associate with the enterprise Bean in the JNDI name space.
public  ClassgetLocalClass()
     Get bean's local interface.
public  ClassgetLocalHomeClass()
     Get bean's local home interface.
public  MethodDescgetMethodDesc(java.lang.reflect.Method method)
     Get descriptor attached to a given method.
public  MethodDescgetMethodDesc(int index)
     get a MethodDesc from its index.
public  IteratorgetMethodDescIterator()
     get an iterator for all MethodDesc of the bean.
protected  ClassgetParentClass(String intfType)
     Returns the parent Class for a method given an interface type.
public  intgetPoolMin()
    
public  ClassgetRemoteClass()
     Get bean's remote interface.
public  StringgetRunAsPrincipalName()
    
public  StringgetRunAsRole()
    
public  SasComponentgetSasComponent()
    
public  ListgetSecurityRoleRefDescList()
     Gets the security-role-ref of the beans can access to the EJBRoleRefPermission and role-link.
public  intgetTimerTxAttribute()
    
public  StringgetWrpHandleName()
    
public  StringgetWrpHomeName()
    
public  StringgetWrpLocalHomeName()
    
public  StringgetWrpLocalName()
    
public  StringgetWrpRemoteName()
    
public  booleanhasDefinedLocalInterface()
    
public  booleanisClusterReplicated()
    
protected  voidloadExtraClasses(CommonEjb ce, ClassLoader loader)
     Permit classes loading from subtypes.
protected  MethodDescnewMethodDescInstance(java.lang.reflect.Method meth, Class classDef, int index)
    
public  voidsetBeanFactory(BeanFactory factory)
     Set the BeanFactory, when the bean is loaded in container.
public  voidsetClusterReplicated(boolean replicated)
    
public  voidsetDeploymentDesc(DeploymentDesc deploymentDesc)
    
public  voidsetSasComponent(SasComponent sasComponent)
    
public  StringtoString()
    
protected  voidverifyRoleName(AssemblyDescriptor asd)
     Check that there are always corresponding role-name element in security-role and method-permission elements.

Field Detail
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



TRANS
final protected static String[] TRANS(Code)



beanIdentification
protected String beanIdentification(Code)
bean identification string



bf
protected BeanFactory bf(Code)
BeanFactory when the bean has been loaded.



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



deploymentDesc
protected DeploymentDesc deploymentDesc(Code)
DeploymentDesc parent of this BeanDesc



derivedBeanName
protected String derivedBeanName(Code)
Bean classname



ejb10EnvProps
protected Properties ejb10EnvProps(Code)
EJB 1.0 Environment as Properties



ejbClass
protected Class ejbClass(Code)
Bean Class



ejbName
protected String ejbName(Code)
name of the Bean



ejbTimeoutSignature
protected String ejbTimeoutSignature(Code)



fullDerivedBeanName
protected String fullDerivedBeanName(Code)
Bean fully qualified classname



home
protected Class home(Code)
Home Class



jndiLocalName
protected String jndiLocalName(Code)
JNDI local name of the Bean



jndiName
protected String jndiName(Code)
JNDI name of the Bean



local
protected Class local(Code)
Local Class



localhome
protected Class localhome(Code)
LocalHome Class



logger
protected Logger logger(Code)
logger



poolMin
protected int poolMin(Code)
Minimum Bean Pool size



remote
protected Class remote(Code)
Remote Class



securityRoleRefDescList
protected List securityRoleRefDescList(Code)
List of SecurityRoleRefDesc for JACC



timerTxAttribute
protected int timerTxAttribute(Code)




Constructor Detail
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, ...)




Method Detail
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



addMethodDesc
protected MethodDesc addMethodDesc(java.lang.reflect.Method meth, Class classDef)(Code)
Add a new method descriptor to the bean
Parameters:
  meth - method to add inside MethodDescs list the constructed MethodDesc



check
public void check() throws DeploymentDescException(Code)
Check that the bean descriptor is valid
throws:
  DeploymentDescException - thrown for non-valid bean



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



checkRunAsMapping
public void checkRunAsMapping() throws DeploymentDescException(Code)
Check that the runAs role mapping is correct
throws:
  DeploymentDescException - if role mapping is incorrect



checkTxAttribute
abstract protected void checkTxAttribute(MethodDesc md) throws DeploymentDescException(Code)
Check that trans-attribute is valid for a bean's method.
Parameters:
  md - MethodDesc to check
throws:
  DeploymentDescException - When MethodDesc is not valid



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



verifyRoleName
protected void verifyRoleName(AssemblyDescriptor asd) throws DeploymentDescException(Code)
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
throws:
  DeploymentDescException - When verification fails



Methods inherited from org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
public EjbLocalRefDesc[] getEjbLocalRefDesc()(Code)(Java Doc)
public EjbRefDesc[] getEjbRefDesc()(Code)(Java Doc)
public EnvEntryDesc[] getEnvEntryDesc()(Code)(Java Doc)
public MessageDestinationRefDesc[] getMessageDestinationRefDesc()(Code)(Java Doc)
public ResourceEnvRefDesc[] getResourceEnvRefDesc()(Code)(Java Doc)
public ResourceRefDesc[] getResourceRefDesc()(Code)(Java Doc)
public ServiceRefDesc[] getServiceRefDesc()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.