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


java.lang.Object
   org.springframework.beans.factory.xml.BeanDefinitionParserDelegate

BeanDefinitionParserDelegate
public class BeanDefinitionParserDelegate (Code)
Stateful delegate class used to parse XML bean definitions. Intended for use by both the main parser and any extension BeanDefinitionParser BeanDefinitionParsers or BeanDefinitionDecorator BeanDefinitionDecorators .
author:
   Rob Harrop
author:
   Juergen Hoeller
author:
   Rod Johnson
since:
   2.0
See Also:   ParserContext
See Also:   DefaultBeanDefinitionDocumentReader


Field Summary
final public static  StringABSTRACT_ATTRIBUTE
    
final public static  StringARG_TYPE_ELEMENT
    
final public static  StringARG_TYPE_MATCH_ATTRIBUTE
    
final public static  StringAUTOWIRE_ATTRIBUTE
    
final public static  StringAUTOWIRE_AUTODETECT_VALUE
    
final public static  StringAUTOWIRE_BY_NAME_VALUE
    
final public static  StringAUTOWIRE_BY_TYPE_VALUE
    
final public static  StringAUTOWIRE_CANDIDATE_ATTRIBUTE
    
final public static  StringAUTOWIRE_CONSTRUCTOR_VALUE
    
final public static  StringBEANS_NAMESPACE_URI
    
final public static  StringBEAN_ELEMENT
    
final public static  StringBEAN_NAME_DELIMITERS
    
final public static  StringBEAN_REF_ATTRIBUTE
    
final public static  StringCLASS_ATTRIBUTE
    
final public static  StringCONSTRUCTOR_ARG_ELEMENT
    
final public static  StringDEFAULT_AUTOWIRE_ATTRIBUTE
    
final public static  StringDEFAULT_DEPENDENCY_CHECK_ATTRIBUTE
    
final public static  StringDEFAULT_DESTROY_METHOD_ATTRIBUTE
    
final public static  StringDEFAULT_INIT_METHOD_ATTRIBUTE
    
final public static  StringDEFAULT_LAZY_INIT_ATTRIBUTE
    
final public static  StringDEFAULT_MERGE_ATTRIBUTE
    
final public static  StringDEFAULT_VALUE
    
final public static  StringDEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE
    
final public static  StringDEPENDENCY_CHECK_ATTRIBUTE
    
final public static  StringDEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE
    
final public static  StringDEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE
    
final public static  StringDEPENDS_ON_ATTRIBUTE
    
final public static  StringDESCRIPTION_ELEMENT
    
final public static  StringDESTROY_METHOD_ATTRIBUTE
    
final public static  StringENTRY_ELEMENT
    
final public static  StringFACTORY_BEAN_ATTRIBUTE
    
final public static  StringFACTORY_METHOD_ATTRIBUTE
    
final public static  StringIDREF_ELEMENT
    
final public static  StringID_ATTRIBUTE
    
final public static  StringINDEX_ATTRIBUTE
    
final public static  StringINIT_METHOD_ATTRIBUTE
    
final public static  StringKEY_ATTRIBUTE
    
final public static  StringKEY_ELEMENT
    
final public static  StringKEY_REF_ATTRIBUTE
    
final public static  StringKEY_TYPE_ATTRIBUTE
    
final public static  StringLAZY_INIT_ATTRIBUTE
    
final public static  StringLIST_ELEMENT
    
final public static  StringLOCAL_REF_ATTRIBUTE
    
final public static  StringLOOKUP_METHOD_ELEMENT
    
final public static  StringMAP_ELEMENT
    
final public static  StringMERGE_ATTRIBUTE
    
final public static  StringMETA_ELEMENT
    
final public static  StringNAME_ATTRIBUTE
    
final public static  StringNULL_ELEMENT
    
final public static  StringPARENT_ATTRIBUTE
    
final public static  StringPARENT_REF_ATTRIBUTE
    
final public static  StringPROPERTY_ELEMENT
    
final public static  StringPROPS_ELEMENT
    
final public static  StringPROP_ELEMENT
    
final public static  StringREF_ATTRIBUTE
    
final public static  StringREF_ELEMENT
    
final public static  StringREPLACED_METHOD_ELEMENT
    
final public static  StringREPLACER_ATTRIBUTE
    
final public static  StringSCOPE_ATTRIBUTE
    
final public static  StringSET_ELEMENT
    
final public static  StringSINGLETON_ATTRIBUTE
    
final public static  StringTRUE_VALUE
     Value of a T/F attribute that represents true. Anything else represents false.
final public static  StringTYPE_ATTRIBUTE
    
final public static  StringVALUE_ATTRIBUTE
    
final public static  StringVALUE_ELEMENT
    
final public static  StringVALUE_REF_ATTRIBUTE
    
final public static  StringVALUE_TYPE_ATTRIBUTE
    
final protected  Loglogger
    

Constructor Summary
public  BeanDefinitionParserDelegate(XmlReaderContext readerContext)
     Create a new BeanDefinitionParserDelegate associated with the supplied XmlReaderContext .

Method Summary
public  BeanDefinitionHolderdecorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder definitionHolder)
    
protected  voiderror(String message, Element source)
     Report an error with the given message for the given source element.
protected  voiderror(String message, Element source, Throwable cause)
     Report an error with the given message for the given source element.
protected  ObjectextractSource(Element ele)
     Invoke the org.springframework.beans.factory.parsing.SourceExtractor to pull the source metadata from the supplied Element .
public  intgetAutowireMode(String att)
    
public  DocumentDefaultsDefinitiongetDefaults()
     Return the defaults definition object, or null if the defaults have been initialized yet.
public  intgetDependencyCheck(String att)
    
final public  XmlReaderContextgetReaderContext()
     Get the XmlReaderContext associated with this helper instance.
public  voidinitDefaults(Element root)
     Initialize the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings.
public  booleanisDefaultNamespace(String namespaceUri)
    
public  BeanDefinitionHolderparseBeanDefinitionElement(Element ele)
     Parses the supplied <bean> element.
public  BeanDefinitionHolderparseBeanDefinitionElement(Element ele, BeanDefinition containingBean)
     Parses the supplied <bean> element.
public  AbstractBeanDefinitionparseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)
     Parse the bean definition itself, without regard to name or aliases.
public  voidparseConstructorArgElement(Element ele, BeanDefinition bd)
     Parse a constructor-arg element.
public  voidparseConstructorArgElements(Element beanEle, BeanDefinition bd)
     Parse constructor-arg sub-elements of the given bean element.
public  BeanDefinitionparseCustomElement(Element ele)
    
public  BeanDefinitionparseCustomElement(Element ele, BeanDefinition containingBd)
    
public  ObjectparseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeClassName)
     Parse a key sub-element of a map element.
public  ListparseListElement(Element collectionEle, BeanDefinition bd)
     Parse a list element.
public  voidparseLookupOverrideSubElements(Element beanEle, MethodOverrides overrides)
     Parse lookup-override sub-elements of the given bean element.
public  MapparseMapElement(Element mapEle, BeanDefinition bd)
     Parse a map element.
public  booleanparseMergeAttribute(Element collectionElement)
     Parse the merge attribute of a collection element, if any.
public  voidparseMetaElements(Element ele, AttributeAccessor attributeAccessor)
    
public  voidparsePropertyElement(Element ele, BeanDefinition bd)
     Parse a property element.
public  voidparsePropertyElements(Element beanEle, BeanDefinition bd)
     Parse property sub-elements of the given bean element.
public  ObjectparsePropertySubElement(Element ele, BeanDefinition bd)
    
public  ObjectparsePropertySubElement(Element ele, BeanDefinition bd, String defaultTypeClassName)
     Parse a value, ref or collection sub-element of a property or constructor-arg element.
public  ObjectparsePropertyValue(Element ele, BeanDefinition bd, String propertyName)
     Get the value of a property element.
public  PropertiesparsePropsElement(Element propsEle)
     Parse a props element.
public  voidparseReplacedMethodSubElements(Element beanEle, MethodOverrides overrides)
     Parse replaced-method sub-elements of the given bean element.
public  SetparseSetElement(Element collectionEle, BeanDefinition bd)
     Parse a set element.

Field Detail
ABSTRACT_ATTRIBUTE
final public static String ABSTRACT_ATTRIBUTE(Code)



ARG_TYPE_ELEMENT
final public static String ARG_TYPE_ELEMENT(Code)



ARG_TYPE_MATCH_ATTRIBUTE
final public static String ARG_TYPE_MATCH_ATTRIBUTE(Code)



AUTOWIRE_ATTRIBUTE
final public static String AUTOWIRE_ATTRIBUTE(Code)



AUTOWIRE_AUTODETECT_VALUE
final public static String AUTOWIRE_AUTODETECT_VALUE(Code)



AUTOWIRE_BY_NAME_VALUE
final public static String AUTOWIRE_BY_NAME_VALUE(Code)



AUTOWIRE_BY_TYPE_VALUE
final public static String AUTOWIRE_BY_TYPE_VALUE(Code)



AUTOWIRE_CANDIDATE_ATTRIBUTE
final public static String AUTOWIRE_CANDIDATE_ATTRIBUTE(Code)



AUTOWIRE_CONSTRUCTOR_VALUE
final public static String AUTOWIRE_CONSTRUCTOR_VALUE(Code)



BEANS_NAMESPACE_URI
final public static String BEANS_NAMESPACE_URI(Code)



BEAN_ELEMENT
final public static String BEAN_ELEMENT(Code)



BEAN_NAME_DELIMITERS
final public static String BEAN_NAME_DELIMITERS(Code)



BEAN_REF_ATTRIBUTE
final public static String BEAN_REF_ATTRIBUTE(Code)



CLASS_ATTRIBUTE
final public static String CLASS_ATTRIBUTE(Code)



CONSTRUCTOR_ARG_ELEMENT
final public static String CONSTRUCTOR_ARG_ELEMENT(Code)



DEFAULT_AUTOWIRE_ATTRIBUTE
final public static String DEFAULT_AUTOWIRE_ATTRIBUTE(Code)



DEFAULT_DEPENDENCY_CHECK_ATTRIBUTE
final public static String DEFAULT_DEPENDENCY_CHECK_ATTRIBUTE(Code)



DEFAULT_DESTROY_METHOD_ATTRIBUTE
final public static String DEFAULT_DESTROY_METHOD_ATTRIBUTE(Code)



DEFAULT_INIT_METHOD_ATTRIBUTE
final public static String DEFAULT_INIT_METHOD_ATTRIBUTE(Code)



DEFAULT_LAZY_INIT_ATTRIBUTE
final public static String DEFAULT_LAZY_INIT_ATTRIBUTE(Code)



DEFAULT_MERGE_ATTRIBUTE
final public static String DEFAULT_MERGE_ATTRIBUTE(Code)



DEFAULT_VALUE
final public static String DEFAULT_VALUE(Code)



DEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE
final public static String DEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE(Code)



DEPENDENCY_CHECK_ATTRIBUTE
final public static String DEPENDENCY_CHECK_ATTRIBUTE(Code)



DEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE
final public static String DEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE(Code)



DEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE
final public static String DEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE(Code)



DEPENDS_ON_ATTRIBUTE
final public static String DEPENDS_ON_ATTRIBUTE(Code)



DESCRIPTION_ELEMENT
final public static String DESCRIPTION_ELEMENT(Code)



DESTROY_METHOD_ATTRIBUTE
final public static String DESTROY_METHOD_ATTRIBUTE(Code)



ENTRY_ELEMENT
final public static String ENTRY_ELEMENT(Code)



FACTORY_BEAN_ATTRIBUTE
final public static String FACTORY_BEAN_ATTRIBUTE(Code)



FACTORY_METHOD_ATTRIBUTE
final public static String FACTORY_METHOD_ATTRIBUTE(Code)



IDREF_ELEMENT
final public static String IDREF_ELEMENT(Code)



ID_ATTRIBUTE
final public static String ID_ATTRIBUTE(Code)



INDEX_ATTRIBUTE
final public static String INDEX_ATTRIBUTE(Code)



INIT_METHOD_ATTRIBUTE
final public static String INIT_METHOD_ATTRIBUTE(Code)



KEY_ATTRIBUTE
final public static String KEY_ATTRIBUTE(Code)



KEY_ELEMENT
final public static String KEY_ELEMENT(Code)



KEY_REF_ATTRIBUTE
final public static String KEY_REF_ATTRIBUTE(Code)



KEY_TYPE_ATTRIBUTE
final public static String KEY_TYPE_ATTRIBUTE(Code)



LAZY_INIT_ATTRIBUTE
final public static String LAZY_INIT_ATTRIBUTE(Code)



LIST_ELEMENT
final public static String LIST_ELEMENT(Code)



LOCAL_REF_ATTRIBUTE
final public static String LOCAL_REF_ATTRIBUTE(Code)



LOOKUP_METHOD_ELEMENT
final public static String LOOKUP_METHOD_ELEMENT(Code)



MAP_ELEMENT
final public static String MAP_ELEMENT(Code)



MERGE_ATTRIBUTE
final public static String MERGE_ATTRIBUTE(Code)



META_ELEMENT
final public static String META_ELEMENT(Code)



NAME_ATTRIBUTE
final public static String NAME_ATTRIBUTE(Code)



NULL_ELEMENT
final public static String NULL_ELEMENT(Code)



PARENT_ATTRIBUTE
final public static String PARENT_ATTRIBUTE(Code)



PARENT_REF_ATTRIBUTE
final public static String PARENT_REF_ATTRIBUTE(Code)



PROPERTY_ELEMENT
final public static String PROPERTY_ELEMENT(Code)



PROPS_ELEMENT
final public static String PROPS_ELEMENT(Code)



PROP_ELEMENT
final public static String PROP_ELEMENT(Code)



REF_ATTRIBUTE
final public static String REF_ATTRIBUTE(Code)



REF_ELEMENT
final public static String REF_ELEMENT(Code)



REPLACED_METHOD_ELEMENT
final public static String REPLACED_METHOD_ELEMENT(Code)



REPLACER_ATTRIBUTE
final public static String REPLACER_ATTRIBUTE(Code)



SCOPE_ATTRIBUTE
final public static String SCOPE_ATTRIBUTE(Code)



SET_ELEMENT
final public static String SET_ELEMENT(Code)



SINGLETON_ATTRIBUTE
final public static String SINGLETON_ATTRIBUTE(Code)



TRUE_VALUE
final public static String TRUE_VALUE(Code)
Value of a T/F attribute that represents true. Anything else represents false. Case seNsItive.



TYPE_ATTRIBUTE
final public static String TYPE_ATTRIBUTE(Code)



VALUE_ATTRIBUTE
final public static String VALUE_ATTRIBUTE(Code)



VALUE_ELEMENT
final public static String VALUE_ELEMENT(Code)



VALUE_REF_ATTRIBUTE
final public static String VALUE_REF_ATTRIBUTE(Code)



VALUE_TYPE_ATTRIBUTE
final public static String VALUE_TYPE_ATTRIBUTE(Code)



logger
final protected Log logger(Code)




Constructor Detail
BeanDefinitionParserDelegate
public BeanDefinitionParserDelegate(XmlReaderContext readerContext)(Code)
Create a new BeanDefinitionParserDelegate associated with the supplied XmlReaderContext .




Method Detail
decorateBeanDefinitionIfRequired
public BeanDefinitionHolder decorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder definitionHolder)(Code)



error
protected void error(String message, Element source)(Code)
Report an error with the given message for the given source element.



error
protected void error(String message, Element source, Throwable cause)(Code)
Report an error with the given message for the given source element.



extractSource
protected Object extractSource(Element ele)(Code)
Invoke the org.springframework.beans.factory.parsing.SourceExtractor to pull the source metadata from the supplied Element .



getAutowireMode
public int getAutowireMode(String att)(Code)



getDefaults
public DocumentDefaultsDefinition getDefaults()(Code)
Return the defaults definition object, or null if the defaults have been initialized yet.



getDependencyCheck
public int getDependencyCheck(String att)(Code)



getReaderContext
final public XmlReaderContext getReaderContext()(Code)
Get the XmlReaderContext associated with this helper instance.



initDefaults
public void initDefaults(Element root)(Code)
Initialize the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings.
See Also:   BeanDefinitionParserDelegate.getDefaults()



isDefaultNamespace
public boolean isDefaultNamespace(String namespaceUri)(Code)



parseBeanDefinitionElement
public BeanDefinitionHolder parseBeanDefinitionElement(Element ele)(Code)
Parses the supplied <bean> element. May return null if there were errors during parse. Errors are reported to the org.springframework.beans.factory.parsing.ProblemReporter .



parseBeanDefinitionElement
public BeanDefinitionHolder parseBeanDefinitionElement(Element ele, BeanDefinition containingBean)(Code)
Parses the supplied <bean> element. May return null if there were errors during parse. Errors are reported to the org.springframework.beans.factory.parsing.ProblemReporter .



parseBeanDefinitionElement
public AbstractBeanDefinition parseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)(Code)
Parse the bean definition itself, without regard to name or aliases. May return null if problems occured during the parse of the bean definition.



parseConstructorArgElement
public void parseConstructorArgElement(Element ele, BeanDefinition bd)(Code)
Parse a constructor-arg element.



parseConstructorArgElements
public void parseConstructorArgElements(Element beanEle, BeanDefinition bd)(Code)
Parse constructor-arg sub-elements of the given bean element.



parseCustomElement
public BeanDefinition parseCustomElement(Element ele)(Code)



parseCustomElement
public BeanDefinition parseCustomElement(Element ele, BeanDefinition containingBd)(Code)



parseKeyElement
public Object parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeClassName)(Code)
Parse a key sub-element of a map element.



parseListElement
public List parseListElement(Element collectionEle, BeanDefinition bd)(Code)
Parse a list element.



parseLookupOverrideSubElements
public void parseLookupOverrideSubElements(Element beanEle, MethodOverrides overrides)(Code)
Parse lookup-override sub-elements of the given bean element.



parseMapElement
public Map parseMapElement(Element mapEle, BeanDefinition bd)(Code)
Parse a map element.



parseMergeAttribute
public boolean parseMergeAttribute(Element collectionElement)(Code)
Parse the merge attribute of a collection element, if any.



parseMetaElements
public void parseMetaElements(Element ele, AttributeAccessor attributeAccessor)(Code)



parsePropertyElement
public void parsePropertyElement(Element ele, BeanDefinition bd)(Code)
Parse a property element.



parsePropertyElements
public void parsePropertyElements(Element beanEle, BeanDefinition bd)(Code)
Parse property sub-elements of the given bean element.



parsePropertySubElement
public Object parsePropertySubElement(Element ele, BeanDefinition bd)(Code)



parsePropertySubElement
public Object parsePropertySubElement(Element ele, BeanDefinition bd, String defaultTypeClassName)(Code)
Parse a value, ref or collection sub-element of a property or constructor-arg element.
Parameters:
  ele - subelement of property element; we don't know which yet
Parameters:
  defaultTypeClassName - the default type (class name) for any<value> tag that might be created



parsePropertyValue
public Object parsePropertyValue(Element ele, BeanDefinition bd, String propertyName)(Code)
Get the value of a property element. May be a list etc. Also used for constructor arguments, "propertyName" being null in this case.



parsePropsElement
public Properties parsePropsElement(Element propsEle)(Code)
Parse a props element.



parseReplacedMethodSubElements
public void parseReplacedMethodSubElements(Element beanEle, MethodOverrides overrides)(Code)
Parse replaced-method sub-elements of the given bean element.



parseSetElement
public Set parseSetElement(Element collectionEle, BeanDefinition bd)(Code)
Parse a set element.



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.