Java Doc for AbstractVerifier.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » verifier » strategy » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.verifier.strategy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.verifier.strategy.AbstractVerifier

All known Subclasses:   org.jboss.verifier.strategy.EJBVerifier11,  org.jboss.verifier.strategy.AbstractEJB2xVerifier,
AbstractVerifier
abstract public class AbstractVerifier implements VerificationStrategy(Code)
Abstract superclass for verifiers containing a bunch of useful methods.
See Also:   org.jboss.verifier.strategy.VerificationStrategy
author:
   Juha Lindfors
author:
   Aaron Mulder (ammulder@alumni.princeton.edu)
author:
   Vinay Menon (menonv@cpw.co.uk)
author:
   Andreas Schaefer
author:
   Luke Taylor
author:
   Jay Walters
author:
   Scott.Stark@jboss.org
version:
   $Revision: 57209 $
since:
   JDK 1.3


Field Summary
final public static  StringBEAN_MANAGED_TX
    
final public static  StringCONTAINER_MANAGED_TX
    
final protected static  StringCREATE_METHOD
    
final protected static  StringEJB_CREATE_METHOD
    
final protected static  StringEJB_HOME_INTERFACE
    
final protected static  StringEJB_HOME_METHOD
    
final protected static  StringEJB_LOCAL_HOME_INTERFACE
    
final protected static  StringEJB_LOCAL_OBJECT_INTERFACE
    
final protected static  StringEJB_OBJECT_INTERFACE
    
final protected static  StringEJB_REMOVE_METHOD
    
final protected static  StringEJB_SELECT_METHOD
    
final public static  StringSTATEFUL_SESSION
    
final public static  StringSTATELESS_SESSION
    
protected  ClassLoaderclassloader
     The application classloader.
final static  Loggerlog
    

Constructor Summary
public  AbstractVerifier(VerificationContext context)
    

Method Summary
public  voidcheckMessageBean(MessageDrivenMetaData bean)
     Provides an empty default implementation for EJB 1.1 verifier (message beans are for EJB 2.0 and greater only).
final protected  voidfireBeanVerifiedEvent(BeanMetaData bean)
    
final protected  voidfireBeanVerifiedEvent(BeanMetaData bean, String msg)
    
protected  voidfireSpecViolationEvent(BeanMetaData bean, Section section)
    
protected  voidfireSpecViolationEvent(BeanMetaData bean, Method method, Section section)
    
public  StrategyContextgetContext()
     Returns the context object reference for this strategy implementation.
public  IteratorgetCreateMethods(Class c)
    
public  MethodgetDefaultCreateMethod(Class c)
    
public  IteratorgetEJBCreateMethods(Class c)
    
public  MethodgetEJBFindByPrimaryKey(Class c)
    
public  IteratorgetEJBFindMethods(Class c)
    
public  IteratorgetFinderMethods(Class home)
    
public  MethodgetMatchingEJBCreate(Class bean, Method create)
    
public  MethodgetMatchingEJBFind(Class bean, Method finder)
    
public  MethodgetMatchingEJBPostCreate(Class bean, Method create)
    
abstract public  StringgetMessageBundle()
    
public  IteratorgetOnMessageMethods(Class c)
    
public  booleanhasANonStaticField(Class c)
     Checks for at least one non-static field.
public  booleanhasCreateMethod(Class c)
    
public  booleanhasDefaultConstructor(Class c)
    
public  booleanhasDefaultCreateMethod(Class home)
    
public  booleanhasEJBCreateMethod(Class c, boolean isSession)
    
public  booleanhasEJBFindByPrimaryKey(Class c)
    
public  booleanhasEJBHomeInterface(Class c)
    
public  booleanhasEJBLocalHomeInterface(Class c)
    
public  booleanhasEJBLocalObjectInterface(Class c)
    
public  booleanhasEJBObjectInterface(Class c)
    
public  booleanhasEntityBeanInterface(Class c)
    
public  booleanhasFinalizer(Class c)
    
public  booleanhasFinderMethod(Class c)
    
public  booleanhasLegalRMIIIOPArguments(Method method)
    
public  booleanhasLegalRMIIIOPExceptionTypes(Method method)
    
public  booleanhasLegalRMIIIOPReturnType(Method method)
    
public  booleanhasLocalReturnType(BeanMetaData bean, Method m)
    
public  booleanhasMatchingEJBCreate(Class bean, Method create)
    
public  booleanhasMatchingEJBFind(Class bean, Method finder)
    
public  booleanhasMatchingEJBHome(Class bean, Method home)
    
public  booleanhasMatchingEJBPostCreate(Class bean, Method create)
    
public  booleanhasMatchingExceptions(Method source, Method target)
    
public  booleanhasMatchingMethod(Class bean, Method method)
    
public  booleanhasMatchingReturnType(Method a, Method b)
    
public  booleanhasMessageDrivenBeanInterface(Class c)
    
public  booleanhasMessageListenerInterface(Class c)
    
public  booleanhasMoreThanOneCreateMethods(Class c)
    
public  booleanhasNoArguments(Method method)
     checks if the method accepts any parameters.
public  booleanhasOnMessageMethod(Class c)
    
public  booleanhasPrimaryKeyReturnType(EntityMetaData entity, Method m)
    
public  booleanhasRemoteReturnType(BeanMetaData bean, Method m)
    
public  booleanhasSessionBeanInterface(Class c)
    
public  booleanhasSessionSynchronizationInterface(Class c)
    
public  booleanhasSingleArgument(Method method, Class argClass)
     checks if the method accepts a single parameter of a specified type.
public  booleanhasVoidReturnType(Method method)
    
public  booleanisAbstract(Class c)
    
public  booleanisAbstract(Method m)
    
public  booleanisAllFieldsPublic(Class c)
     Checks whether all the fields in the class are declared as public.
public  booleanisAssignableFrom(String className, Class assignableFromClass)
    
public  booleanisAssignableFrom(Class clazz, String assignableFromClassName)
    
abstract public  booleanisCreateMethod(Method m)
    
abstract public  booleanisEjbCreateMethod(Method m)
    
public  booleanisFinal(Member member)
     checks if a class's member (method, constructor or field) has a final modifier.
public  booleanisFinal(Class c)
    
public  booleanisFinderMethod(Method m)
    
public  booleanisMultiObjectFinder(Method f)
    
public  booleanisOnMessageMethod(Method m)
    
public  booleanisPublic(Member member)
     checks if a class's member (method, constructor or field) has a public modifier.
public  booleanisPublic(Class c)
    
protected  booleanisRMIIDLValueType(Class type)
    
protected  booleanisRMIIIOPType(Class type)
    
public  booleanisSingleObjectFinder(EntityMetaData entity, Method finder)
    
public  booleanisStatic(Member member)
     checks if a class's member (method, constructor or field) has a static modifier.
public  booleanisStatic(Class c)
    
public  booleanthrowsCreateException(Method method)
     checks if the method includes java.ejb.CreateException in its throws clause.
public  booleanthrowsFinderException(Method method)
     checks if the methods includes javax.ejb.FinderException in its throws clause.
public  booleanthrowsNoException(Method method)
     checks if the method throws no checked exceptions in its throws clause.
public  booleanthrowsRemoteException(Method method)
     Checks if the method includes java.rmi.RemoteException or its subclass in its throws clause.

Field Detail
BEAN_MANAGED_TX
final public static String BEAN_MANAGED_TX(Code)



CONTAINER_MANAGED_TX
final public static String CONTAINER_MANAGED_TX(Code)



CREATE_METHOD
final protected static String CREATE_METHOD(Code)



EJB_CREATE_METHOD
final protected static String EJB_CREATE_METHOD(Code)



EJB_HOME_INTERFACE
final protected static String EJB_HOME_INTERFACE(Code)



EJB_HOME_METHOD
final protected static String EJB_HOME_METHOD(Code)



EJB_LOCAL_HOME_INTERFACE
final protected static String EJB_LOCAL_HOME_INTERFACE(Code)



EJB_LOCAL_OBJECT_INTERFACE
final protected static String EJB_LOCAL_OBJECT_INTERFACE(Code)



EJB_OBJECT_INTERFACE
final protected static String EJB_OBJECT_INTERFACE(Code)



EJB_REMOVE_METHOD
final protected static String EJB_REMOVE_METHOD(Code)



EJB_SELECT_METHOD
final protected static String EJB_SELECT_METHOD(Code)



STATEFUL_SESSION
final public static String STATEFUL_SESSION(Code)



STATELESS_SESSION
final public static String STATELESS_SESSION(Code)



classloader
protected ClassLoader classloader(Code)
The application classloader. This can be provided by the context directly via VerificationContext.getClassLoader method, or constructed by this object by creating a classloader to the URL returned by VerificationContext.getJarLocation method.

Initialized in the constructor.




log
final static Logger log(Code)




Constructor Detail
AbstractVerifier
public AbstractVerifier(VerificationContext context)(Code)
CONSTRUCTORS




Method Detail
checkMessageBean
public void checkMessageBean(MessageDrivenMetaData bean)(Code)
Provides an empty default implementation for EJB 1.1 verifier (message beans are for EJB 2.0 and greater only).
Parameters:
  bean - the message bean to verify



fireBeanVerifiedEvent
final protected void fireBeanVerifiedEvent(BeanMetaData bean)(Code)



fireBeanVerifiedEvent
final protected void fireBeanVerifiedEvent(BeanMetaData bean, String msg)(Code)



fireSpecViolationEvent
protected void fireSpecViolationEvent(BeanMetaData bean, Section section)(Code)



fireSpecViolationEvent
protected void fireSpecViolationEvent(BeanMetaData bean, Method method, Section section)(Code)



getContext
public StrategyContext getContext()(Code)
Returns the context object reference for this strategy implementation. the client object using this algorithm implementation



getCreateMethods
public Iterator getCreateMethods(Class c)(Code)
Return all create methods of a class



getDefaultCreateMethod
public Method getDefaultCreateMethod(Class c)(Code)
Returns the default create method or nullif none is found



getEJBCreateMethods
public Iterator getEJBCreateMethods(Class c)(Code)
Returns the ejbCreate(...) methods of a bean



getEJBFindByPrimaryKey
public Method getEJBFindByPrimaryKey(Class c)(Code)
Returns the ejbFindByPrimaryKey method



getEJBFindMethods
public Iterator getEJBFindMethods(Class c)(Code)
returns the ejbFind methods of a bean



getFinderMethods
public Iterator getFinderMethods(Class home)(Code)
returns the finder methods of a home interface



getMatchingEJBCreate
public Method getMatchingEJBCreate(Class bean, Method create)(Code)



getMatchingEJBFind
public Method getMatchingEJBFind(Class bean, Method finder)(Code)



getMatchingEJBPostCreate
public Method getMatchingEJBPostCreate(Class bean, Method create)(Code)



getMessageBundle
abstract public String getMessageBundle()(Code)



getOnMessageMethods
public Iterator getOnMessageMethods(Class c)(Code)
Returns the onMessage(...) method of a bean



hasANonStaticField
public boolean hasANonStaticField(Class c)(Code)
Checks for at least one non-static field.



hasCreateMethod
public boolean hasCreateMethod(Class c)(Code)
Searches for an instance of a public create method from the class



hasDefaultConstructor
public boolean hasDefaultConstructor(Class c)(Code)
Checks if a class has a default (no args) constructor



hasDefaultCreateMethod
public boolean hasDefaultCreateMethod(Class home)(Code)
Searches the class or interface, and its superclass or superinterface for a create() method that takes no arguments



hasEJBCreateMethod
public boolean hasEJBCreateMethod(Class c, boolean isSession)(Code)
Searches for an instance of a public ejbCreate method from the class



hasEJBFindByPrimaryKey
public boolean hasEJBFindByPrimaryKey(Class c)(Code)
checks if the class has an ejbFindByPrimaryKey method



hasEJBHomeInterface
public boolean hasEJBHomeInterface(Class c)(Code)
Finds javax.ejb.EJBHome interface from the class or its superclasses



hasEJBLocalHomeInterface
public boolean hasEJBLocalHomeInterface(Class c)(Code)
Finds javax.ejb.EJBLocalHome interface from the class or its superclasses



hasEJBLocalObjectInterface
public boolean hasEJBLocalObjectInterface(Class c)(Code)
Finds java.ejb.EJBLocalObject interface from the class



hasEJBObjectInterface
public boolean hasEJBObjectInterface(Class c)(Code)
Finds java.ejb.EJBObject interface from the class



hasEntityBeanInterface
public boolean hasEntityBeanInterface(Class c)(Code)
Finds java.ejb.EntityBean interface from the class



hasFinalizer
public boolean hasFinalizer(Class c)(Code)
Checks of the class defines a finalize() method



hasFinderMethod
public boolean hasFinderMethod(Class c)(Code)
check if a class has one or more finder methods



hasLegalRMIIIOPArguments
public boolean hasLegalRMIIIOPArguments(Method method)(Code)



hasLegalRMIIIOPExceptionTypes
public boolean hasLegalRMIIIOPExceptionTypes(Method method)(Code)



hasLegalRMIIIOPReturnType
public boolean hasLegalRMIIIOPReturnType(Method method)(Code)



hasLocalReturnType
public boolean hasLocalReturnType(BeanMetaData bean, Method m)(Code)
checks the return type of method matches the bean's local interface



hasMatchingEJBCreate
public boolean hasMatchingEJBCreate(Class bean, Method create)(Code)



hasMatchingEJBFind
public boolean hasMatchingEJBFind(Class bean, Method finder)(Code)



hasMatchingEJBHome
public boolean hasMatchingEJBHome(Class bean, Method home)(Code)



hasMatchingEJBPostCreate
public boolean hasMatchingEJBPostCreate(Class bean, Method create)(Code)
Check whether a bean has a matching ejbPostCreate methods for a given ejbCreate method



hasMatchingExceptions
public boolean hasMatchingExceptions(Method source, Method target)(Code)
Check whether two given methods declare the same Exceptions



hasMatchingMethod
public boolean hasMatchingMethod(Class bean, Method method)(Code)
Check if a class (or its superclasses) declare a given method



hasMatchingReturnType
public boolean hasMatchingReturnType(Method a, Method b)(Code)
Check whether two methods have the same return type



hasMessageDrivenBeanInterface
public boolean hasMessageDrivenBeanInterface(Class c)(Code)
Finds java.ejb.MessageDrivenBean interface from the class



hasMessageListenerInterface
public boolean hasMessageListenerInterface(Class c)(Code)
Finds javax.jms.MessageListener interface from the class



hasMoreThanOneCreateMethods
public boolean hasMoreThanOneCreateMethods(Class c)(Code)
Check whether a class has more than one create method



hasNoArguments
public boolean hasNoArguments(Method method)(Code)
checks if the method accepts any parameters.



hasOnMessageMethod
public boolean hasOnMessageMethod(Class c)(Code)
Searches for an instance of a public onMessage method from the class



hasPrimaryKeyReturnType
public boolean hasPrimaryKeyReturnType(EntityMetaData entity, Method m)(Code)
checks the return type of method matches the entity's primary key class or is a super class of the primary key class



hasRemoteReturnType
public boolean hasRemoteReturnType(BeanMetaData bean, Method m)(Code)
checks the return type of method matches the bean's remote interface



hasSessionBeanInterface
public boolean hasSessionBeanInterface(Class c)(Code)
Finds java.ejb.SessionBean interface from the class



hasSessionSynchronizationInterface
public boolean hasSessionSynchronizationInterface(Class c)(Code)
Finds javax.ejb.SessionSynchronization interface from the class



hasSingleArgument
public boolean hasSingleArgument(Method method, Class argClass)(Code)
checks if the method accepts a single parameter of a specified type.



hasVoidReturnType
public boolean hasVoidReturnType(Method method)(Code)
checks if a method has a void return type



isAbstract
public boolean isAbstract(Class c)(Code)
checks if the given class is declared as abstract



isAbstract
public boolean isAbstract(Method m)(Code)
checks if the given method is declared as abstract



isAllFieldsPublic
public boolean isAllFieldsPublic(Class c)(Code)
Checks whether all the fields in the class are declared as public.



isAssignableFrom
public boolean isAssignableFrom(String className, Class assignableFromClass)(Code)



isAssignableFrom
public boolean isAssignableFrom(Class clazz, String assignableFromClassName)(Code)



isCreateMethod
abstract public boolean isCreateMethod(Method m)(Code)



isEjbCreateMethod
abstract public boolean isEjbCreateMethod(Method m)(Code)



isFinal
public boolean isFinal(Member member)(Code)
checks if a class's member (method, constructor or field) has a final modifier.



isFinal
public boolean isFinal(Class c)(Code)
checks if the given class is declared as final



isFinderMethod
public boolean isFinderMethod(Method m)(Code)
Check if this is a finder method



isMultiObjectFinder
public boolean isMultiObjectFinder(Method f)(Code)
checks if finder method returns either Collection or Enumeration



isOnMessageMethod
public boolean isOnMessageMethod(Method m)(Code)
Check if the given message is the onMessage() method



isPublic
public boolean isPublic(Member member)(Code)
checks if a class's member (method, constructor or field) has a public modifier.



isPublic
public boolean isPublic(Class c)(Code)
checks if the given class is declared as public



isRMIIDLValueType
protected boolean isRMIIDLValueType(Class type)(Code)



isRMIIIOPType
protected boolean isRMIIIOPType(Class type)(Code)



isSingleObjectFinder
public boolean isSingleObjectFinder(EntityMetaData entity, Method finder)(Code)
checks if finder returns the primary key type



isStatic
public boolean isStatic(Member member)(Code)
checks if a class's member (method, constructor or field) has a static modifier.



isStatic
public boolean isStatic(Class c)(Code)
checks if the given class is declared as static (inner classes only)



throwsCreateException
public boolean throwsCreateException(Method method)(Code)
checks if the method includes java.ejb.CreateException in its throws clause.



throwsFinderException
public boolean throwsFinderException(Method method)(Code)
checks if the methods includes javax.ejb.FinderException in its throws clause.



throwsNoException
public boolean throwsNoException(Method method)(Code)
checks if the method throws no checked exceptions in its throws clause.



throwsRemoteException
public boolean throwsRemoteException(Method method)(Code)
Checks if the method includes java.rmi.RemoteException or its subclass in its throws clause. See bug report #434739 and #607805



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.