Java Doc for ComponentVerifier.java in  » Inversion-of-Control » DNA » org » codehaus » dna » tools » verifier » 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 » Inversion of Control » DNA » org.codehaus.dna.tools.verifier 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.dna.tools.verifier.ComponentVerifier

ComponentVerifier
public class ComponentVerifier (Code)
Utility class to help verify that component respects the rules of an DNA component.
author:
   Peter Donald
version:
   $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $




Method Summary
protected  MethodgetComposeMethod(Class type)
     Return the method via which component is passed services.
protected  AttributegetConfigurationMetaData(Class type)
     Return the configuration metadata for component if any.
protected  MethodgetConfigurationMethod(Class type)
     Return the method used to pass configuration to component.
protected  Attribute[]getDependencyAttributes(Class type)
     Return the dependency attributes for component.
 StringgetMessage(String key)
     Get message out of resource bundle with specified key.
 StringgetMessage(String key, Object[] args)
     Get message out of resource bungle with specified key and format wit specified arguments.
 Class[]getServiceClasses(Class type, List issues)
     Retrieve an array of Classes for all the services that a Component offers.
 voidverifyClass(Class type, List issues)
     Verify that the supplied class is a valid type for a component.
 voidverifyConfigurationMetaData(Class type, List issues)
     Verify that the configuration metadata for component is valid.
 voidverifyDependencyKeyConforms(String typeName, String key, List issues)
    
 voidverifyDependencyMetaData(Class type, List issues)
     Verify that the dependency metadata for component is valid.
 voidverifyDependencyMetaData(Class type, Attribute attribute, List issues)
     Verify that the dependency metadata tag is valid.
 voidverifyDependencyOptionalValid(String optional, List issues)
     Verify that value of optional value is valid.
 voidverifyDependencyType(Class type, String typeName, List issues)
     Verify that the type specified dependency can be loaded.
 voidverifyImplementsServices(Class implementation, Class[] services, List issues)
     Verify that the supplied implementation implements the specified services.
 voidverifyLocation(Class type, String location, List issues)
     Verify that the location specified for the schema actually exists.
 voidverifyMetaData(Class type, List issues)
     Verify that the component is annotated with the dna.component metadata.
 voidverifyNoArgConstructor(Class clazz, List issues)
     Verify that the component has a no-arg aka default constructor.
 voidverifyNonAbstract(Class clazz, List issues)
     Verify that the component is not represented by abstract class.
 voidverifyNonArray(Class clazz, List issues)
     Verify that the component is not represented by an array class.
 voidverifyNonInterface(Class clazz, List issues)
     Verify that the component is not represented by interface class.
 voidverifyNonPrimitive(Class clazz, List issues)
     Verify that the component is not represented by primitive class.
 voidverifyOptionalParameter(String optional, List issues)
     Verify optional parameter for dependency metadata.
 voidverifyPublic(Class clazz, List issues)
     Verify that the component is not represented by abstract class.
 voidverifyService(Class clazz, List issues)
     Verify that the supplied class is a valid class for a service.
 voidverifyServiceIsPublic(Class clazz, List issues)
     Verify that the service implemented by specified component is public.
 voidverifyServiceIsaInterface(Class clazz, List issues)
     Verify that the service implemented by specified component is an interface.
 voidverifyServiceNotALifecycle(Class clazz, List issues)
     Verify that the service implemented by specified component does not extend any lifecycle interfaces.
public  VerifyIssue[]verifyType(Class type)
     Verfiy that specified components designate classes that implement the advertised interfaces.



Method Detail
getComposeMethod
protected Method getComposeMethod(Class type) throws NoSuchMethodException(Code)
Return the method via which component is passed services. This method is protected so can overload in subclasses and get alternative methods.
Parameters:
  type - the components type the method
throws:
  NoSuchMethodException - if can not locate method



getConfigurationMetaData
protected Attribute getConfigurationMetaData(Class type)(Code)
Return the configuration metadata for component if any. Protected to allow overiding in subclasses.
Parameters:
  type - the component type the metadata if any



getConfigurationMethod
protected Method getConfigurationMethod(Class type) throws NoSuchMethodException(Code)
Return the method used to pass configuration to component.
Parameters:
  type - the components type the method
throws:
  NoSuchMethodException - if unable to locate method



getDependencyAttributes
protected Attribute[] getDependencyAttributes(Class type)(Code)
Return the dependency attributes for component. Made protected so that it is possible to overload in subclasses.
Parameters:
  type - the component type the dependency attributes



getMessage
String getMessage(String key)(Code)
Get message out of resource bundle with specified key.
Parameters:
  key - the key the message



getMessage
String getMessage(String key, Object[] args)(Code)
Get message out of resource bungle with specified key and format wit specified arguments.
Parameters:
  key - the keys
Parameters:
  args - the arguments the message



getServiceClasses
Class[] getServiceClasses(Class type, List issues)(Code)
Retrieve an array of Classes for all the services that a Component offers. This method also makes sure all services offered are interfaces.
Parameters:
  type - the component type
Parameters:
  issues - the list of issues an array of Classes for all the services



verifyClass
void verifyClass(Class type, List issues)(Code)
Verify that the supplied class is a valid type for a component.
Parameters:
  type - the class representing component
Parameters:
  issues - the list of issues



verifyConfigurationMetaData
void verifyConfigurationMetaData(Class type, List issues)(Code)
Verify that the configuration metadata for component is valid.
Parameters:
  type - the type
Parameters:
  issues - the list of issues



verifyDependencyKeyConforms
void verifyDependencyKeyConforms(String typeName, String key, List issues)(Code)
Verify that the key conforms to the expectation of being (type)[/(qualifier)]
Parameters:
  typeName - the name of dependency type
Parameters:
  key - the dependency key
Parameters:
  issues - the list of issues



verifyDependencyMetaData
void verifyDependencyMetaData(Class type, List issues)(Code)
Verify that the dependency metadata for component is valid.
Parameters:
  type - the type
Parameters:
  issues - the list of issues



verifyDependencyMetaData
void verifyDependencyMetaData(Class type, Attribute attribute, List issues)(Code)
Verify that the dependency metadata tag is valid.
Parameters:
  type - the component type
Parameters:
  attribute - the metadata tag
Parameters:
  issues - the list of issues



verifyDependencyOptionalValid
void verifyDependencyOptionalValid(String optional, List issues)(Code)
Verify that value of optional value is valid.
Parameters:
  optional - the optional value
Parameters:
  issues - the list of issues



verifyDependencyType
void verifyDependencyType(Class type, String typeName, List issues)(Code)
Verify that the type specified dependency can be loaded.
Parameters:
  type - the component type
Parameters:
  typeName - the type of dependency
Parameters:
  issues - the list of issues



verifyImplementsServices
void verifyImplementsServices(Class implementation, Class[] services, List issues)(Code)
Verify that the supplied implementation implements the specified services.
Parameters:
  implementation - the class representign component
Parameters:
  services - the services that the implementation must provide
Parameters:
  issues - the list of issues



verifyLocation
void verifyLocation(Class type, String location, List issues)(Code)
Verify that the location specified for the schema actually exists.
Parameters:
  type - the component type
Parameters:
  location - the location of schmea
Parameters:
  issues - the list of issues



verifyMetaData
void verifyMetaData(Class type, List issues)(Code)
Verify that the component is annotated with the dna.component metadata.
Parameters:
  type - the type
Parameters:
  issues - the list of issues



verifyNoArgConstructor
void verifyNoArgConstructor(Class clazz, List issues)(Code)
Verify that the component has a no-arg aka default constructor.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyNonAbstract
void verifyNonAbstract(Class clazz, List issues)(Code)
Verify that the component is not represented by abstract class.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyNonArray
void verifyNonArray(Class clazz, List issues)(Code)
Verify that the component is not represented by an array class.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyNonInterface
void verifyNonInterface(Class clazz, List issues)(Code)
Verify that the component is not represented by interface class.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyNonPrimitive
void verifyNonPrimitive(Class clazz, List issues)(Code)
Verify that the component is not represented by primitive class.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyOptionalParameter
void verifyOptionalParameter(String optional, List issues)(Code)
Verify optional parameter for dependency metadata.
Parameters:
  optional - the value of parameter
Parameters:
  issues - the list of issues



verifyPublic
void verifyPublic(Class clazz, List issues)(Code)
Verify that the component is not represented by abstract class.
Parameters:
  clazz - the class representign component
Parameters:
  issues - the list of issues



verifyService
void verifyService(Class clazz, List issues)(Code)
Verify that the supplied class is a valid class for a service.
Parameters:
  clazz - the class representign service
Parameters:
  issues - the list of issues



verifyServiceIsPublic
void verifyServiceIsPublic(Class clazz, List issues)(Code)
Verify that the service implemented by specified component is public.
Parameters:
  clazz - the class representign service
Parameters:
  issues - the list of issues



verifyServiceIsaInterface
void verifyServiceIsaInterface(Class clazz, List issues)(Code)
Verify that the service implemented by specified component is an interface.
Parameters:
  clazz - the class representign service
Parameters:
  issues - the list of issues



verifyServiceNotALifecycle
void verifyServiceNotALifecycle(Class clazz, List issues)(Code)
Verify that the service implemented by specified component does not extend any lifecycle interfaces.
Parameters:
  clazz - the class representign service
Parameters:
  issues - the list of issues



verifyType
public VerifyIssue[] verifyType(Class type)(Code)
Verfiy that specified components designate classes that implement the advertised interfaces.
Parameters:
  type - the component type an array of issues



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.