Java Doc for ComponentDefinition.java in  » J2EE » spring-framework-2.0.6 » org » springframework » beans » factory » parsing » 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 » spring framework 2.0.6 » org.springframework.beans.factory.parsing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.beans.factory.parsing.ComponentDefinition

All known Subclasses:   org.springframework.beans.factory.parsing.AbstractComponentDefinition,  org.springframework.beans.factory.parsing.BeanComponentDefinition,
ComponentDefinition
public interface ComponentDefinition extends BeanMetadataElement(Code)
Interface that describes the logical view of a set of BeanDefinition BeanDefinitions and BeanReference BeanReferences as presented in some configuration context.

With the introduction of org.springframework.beans.factory.xml.NamespaceHandler pluggable custom XML tags , it is now possible for a single logical configuration entity, in this case an XML tag, to create multiple BeanDefinition BeanDefinitions and BeanReference RuntimeBeanReferences in order to provide more succinct configuration and greater convenience to end users. As such, it can no longer be assumed that each configuration entity (e.g. XML tag) maps to one BeanDefinition . For tool vendors and other users who wish to present visualization or support for configuring Spring applications it is important that there is some mechanism in place to tie the BeanDefinition BeanDefinitions in the org.springframework.beans.factory.BeanFactory back to the configuration data in a way that has concrete meaning to the end user. As such, org.springframework.beans.factory.xml.NamespaceHandler implementations are able to publish events in the form of a ComponentDefinition for each logical entity being configured. Third parties can then org.springframework.beans.factory.parsing.ReaderEventListener subscribe to these events , allowing for a user-centric view of the bean metadata.

Each ComponentDefinition has a ComponentDefinition.getSource source object which is configuration-specific. In the case of XML-based configuration this is typically the org.w3c.dom.Node which contains the user supplied configuration information. In addition to this, each BeanDefinition enclosed in a ComponentDefinition has its own BeanDefinition.getSource source object which may point to a different, more specific, set of configuration data. Beyond this, individual pieces of bean metadata such as the org.springframework.beans.PropertyValue PropertyValues may also have a source object giving an even greater level of detail. Source object extraction is handled through the org.springframework.beans.factory.parsing.SourceExtractor which can be customized as required.

Whilst direct access to important BeanReference BeanReferences is provided through ComponentDefinition.getBeanReferences , tools may wish to inspect all BeanDefinition BeanDefinitions to gather the full set of BeanReference BeanReferences . Implementations are required to provide all BeanReference BeanReferences that are required to validate the configuration of the overall logical entity as well as those required to provide full user visualisation of the configuration. It is expected that certain BeanReference BeanReferences will not be important to validation or to the user view of the configuration and as such these may be ommitted. A tool may wish to display any additional BeanReference BeanReferences sourced through the supplied BeanDefinition BeanDefinitions but this is not considered to be a typical case.

Tools can determine the important of contained BeanDefinition BeanDefinitions by checking the BeanDefinition.getRole role identifier . The role is essentially a hint to the tool as to how important the configuration provider believes a BeanDefinition is to the end user. It is expected that tools will not display all BeanDefinition BeanDefinitions for a given ComponentDefinition choosing instead to filter based on the role. Tools may choose to make this filtering user configurable. Particular notice should be given to the BeanDefinition.ROLE_INFRASTRUCTURE INFRASTRUCTURE role identifier . BeanDefinition BeanDefinitions classified with this role are completely unimportant to the end user and are required only for internal implementation reasons.
author:
   Rob Harrop
author:
   Juergen Hoeller
since:
   2.0
See Also:   AbstractComponentDefinition
See Also:   CompositeComponentDefinition
See Also:   BeanComponentDefinition
See Also:   ReaderEventListener.componentRegistered(ComponentDefinition)





Method Summary
 BeanDefinition[]getBeanDefinitions()
     Return the BeanDefinition BeanDefinitions that were registered to form this ComponentDefinition.
 BeanReference[]getBeanReferences()
     Return the set of BeanReference BeanReferences that are considered to be important to this ComponentDefinition.
 StringgetDescription()
     Return a friendly description of the described component.
 BeanDefinition[]getInnerBeanDefinitions()
     Return the BeanDefinition BeanDefinitions that represent all relevant inner beans within this component.
 StringgetName()
     Get the user-visible name of this ComponentDefinition.



Method Detail
getBeanDefinitions
BeanDefinition[] getBeanDefinitions()(Code)
Return the BeanDefinition BeanDefinitions that were registered to form this ComponentDefinition.

It should be noted that a ComponentDefinition may well be related with other BeanDefinition BeanDefinitions via BeanReference references , however these are not included as they may be not available immediately. Important BeanReference BeanReferences are available from ComponentDefinition.getBeanReferences() . the array of BeanDefinitions, or an empty array if none




getBeanReferences
BeanReference[] getBeanReferences()(Code)
Return the set of BeanReference BeanReferences that are considered to be important to this ComponentDefinition.

Other BeanReference BeanReferences may exist within the associated BeanDefinition BeanDefinitions , however these are not considered to be needed for validation or for user visualization. the array of BeanReferences, or an empty array if none




getDescription
String getDescription()(Code)
Return a friendly description of the described component.

Implementations are encouraged to return the same value from toString().




getInnerBeanDefinitions
BeanDefinition[] getInnerBeanDefinitions()(Code)
Return the BeanDefinition BeanDefinitions that represent all relevant inner beans within this component.

Other inner beans may exist within the associated BeanDefinition BeanDefinitions , however these are not considered to be needed for validation or for user visualization. the array of BeanDefinitions, or an empty array if none




getName
String getName()(Code)
Get the user-visible name of this ComponentDefinition.

This should link back directly to the corresponding configuration data for this component in a given context.




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