Java Doc for SpringNamespaceHelper.java in  » Web-Framework » Caramba » org » caramba » spring » 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 » Web Framework » Caramba » org.caramba.spring 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.caramba.spring.SpringNamespaceHelper

SpringNamespaceHelper
public class SpringNamespaceHelper implements XmlBeanDefinitionParser(Code)
Default implementation of the XmlBeanDefinitionParser interface. Parses bean definitions according to the "spring-beans" DTD, that is, Spring's default XML bean definition format.

The structure, elements and attribute names of the required XML document are hard-coded in this class. (Of course a transform could be run if necessary to produce this format). <beans> doesn't need to be the root element of the XML document: This class will parse all bean definition elements in the XML file, not regarding the actual root element.
author:
   Rod Johnson
author:
   Juergen Hoeller
author:
   Rob Harrop
author:
   Erik Wiersma
since:
   18.12.2003



Field Summary
final public static  StringABSTRACT_ATTRIBUTE
    
final public static  StringALIAS_ATTRIBUTE
    
final public static  StringALIAS_ELEMENT
    
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_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_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  StringIMPORT_ELEMENT
    
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  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  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  StringRESOURCE_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 protected  Loglogger
    


Method Summary
protected  NamespaceHandlerResolvercreateNamespaceHandlerResolver()
    
protected  intgetAutowireMode(String att)
    
final protected  BeanDefinitionReadergetBeanDefinitionReader()
     Return the BeanDefinitionReader that this parser has been called from.
final protected  StringgetDefaultAutowire()
     Return the default autowire setting for the document that's currently parsed.
final protected  StringgetDefaultDependencyCheck()
     Return the default dependency-check setting for the document that's currently parsed.
final protected  StringgetDefaultDestroyMethod()
     Return the default dependency-destroy-method setting for the document that's currently parsed.
final protected  StringgetDefaultInitMethod()
     Return the default dependency-init-method setting for the document that's currently parsed.
final protected  StringgetDefaultLazyInit()
     Return the default lazy-init flag for the document that's currently parsed.
protected  intgetDependencyCheck(String att)
    
final protected  ResourcegetResource()
     Return the descriptor for the XML resource that this parser works on.
protected  voidimportBeanDefinitionResource(Element ele)
     Parse an "import" element and load the bean definitions from the given resource into the bean factory.
protected  voidinitDefaults(Element root)
     Initialize the default lazy-init, autowire and dependency check settings.
protected  BeanDefinitionHolderparseBeanDefinitionElement(Element ele, boolean isInnerBean)
     Parse a standard bean definition into a BeanDefinitionHolder, including bean name and aliases.
protected  BeanDefinitionparseBeanDefinitionElement(Element ele, String beanName)
     Parse the BeanDefinition itself, without regard to name or aliases.
protected  intparseBeanDefinitions(Element root)
     Parse the elements at the root level in the document: "import", "alias", "bean".
protected  voidparseConstructorArgElement(Element ele, String beanName, ConstructorArgumentValues cargs)
     Parse a constructor-arg element.
protected  ConstructorArgumentValuesparseConstructorArgElements(Element beanEle, String beanName)
     Parse constructor-arg sub-elements of the given bean element.
protected  intparseCustomElement(Element ele)
    
protected  ObjectparseKeyElement(Element keyEle, String beanName)
     Parse a key sub-element of a map element.
protected  ListparseListElement(Element collectionEle, String beanName)
     Parse a list element.
protected  voidparseLookupOverrideSubElements(Element beanEle, String beanName, MethodOverrides overrides)
     Parse lookup-override sub-elements of the given bean element.
protected  MapparseMapElement(Element mapEle, String beanName)
     Parse a map element.
protected  voidparsePropertyElement(Element ele, String beanName, MutablePropertyValues pvs)
     Parse a property element.
public  MutablePropertyValuesparsePropertyElements(Element beanEle, String beanName)
     Parse property sub-elements of the given bean element.
public  ObjectparsePropertySubElement(Element ele, String beanName)
     Parse a value, ref or collection sub-element of a property or constructor-arg element.
protected  ObjectparsePropertyValue(Element ele, String beanName, String propertyName)
     Get the value of a property element.
protected  PropertiesparsePropsElement(Element propsEle, String beanName)
     Parse a props element.
protected  voidparseReplacedMethodSubElements(Element beanEle, String beanName, MethodOverrides overrides)
     Parse replaced-method sub-elements of the given bean element.
protected  SetparseSetElement(Element collectionEle, String beanName)
     Parse a set element.
protected  voidpostProcessXml(Element root)
     Allow the XML to be extensible by processing any custom element types last, after we finished processing the bean definitions.
protected  voidpreProcessXml(Element root)
     Allow the XML to be extensible by processing any custom element types first, before we start to process the bean definitions.
public  intregisterBeanDefinitions(BeanDefinitionReader reader, Document doc, Resource resource)
     Parses bean definitions according to the "spring-beans" DTD.
public  voidregisterBeanDefinitions(Document pDocument, ReaderContext pReaderContext)
    
final protected  voidsetDefaultAutowire(String defaultAutowire)
     Set the default autowire setting for the document that's currently parsed.
final protected  voidsetDefaultDependencyCheck(String defaultDependencyCheck)
     Set the default dependency-check setting for the document that's currently parsed.
final protected  voidsetDefaultDestroyMethod(String defaultDestroyMethod)
     Set the default dependency-destroy-method setting for the document that's currently parsed.
final protected  voidsetDefaultInitMethod(String defaultInitMethod)
     Set the default dependency-init-method setting for the document that's currently parsed.
final protected  voidsetDefaultLazyInit(String defaultLazyInit)
     Set the default lazy-init flag for the document that's currently parsed.

Field Detail
ABSTRACT_ATTRIBUTE
final public static String ABSTRACT_ATTRIBUTE(Code)



ALIAS_ATTRIBUTE
final public static String ALIAS_ATTRIBUTE(Code)



ALIAS_ELEMENT
final public static String ALIAS_ELEMENT(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_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_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)



IMPORT_ELEMENT
final public static String IMPORT_ELEMENT(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)



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)



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)



RESOURCE_ATTRIBUTE
final public static String RESOURCE_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)



logger
final protected Log logger(Code)





Method Detail
createNamespaceHandlerResolver
protected NamespaceHandlerResolver createNamespaceHandlerResolver()(Code)



getAutowireMode
protected int getAutowireMode(String att)(Code)



getBeanDefinitionReader
final protected BeanDefinitionReader getBeanDefinitionReader()(Code)
Return the BeanDefinitionReader that this parser has been called from.



getDefaultAutowire
final protected String getDefaultAutowire()(Code)
Return the default autowire setting for the document that's currently parsed.



getDefaultDependencyCheck
final protected String getDefaultDependencyCheck()(Code)
Return the default dependency-check setting for the document that's currently parsed.



getDefaultDestroyMethod
final protected String getDefaultDestroyMethod()(Code)
Return the default dependency-destroy-method setting for the document that's currently parsed.



getDefaultInitMethod
final protected String getDefaultInitMethod()(Code)
Return the default dependency-init-method setting for the document that's currently parsed.



getDefaultLazyInit
final protected String getDefaultLazyInit()(Code)
Return the default lazy-init flag for the document that's currently parsed.



getDependencyCheck
protected int getDependencyCheck(String att)(Code)



getResource
final protected Resource getResource()(Code)
Return the descriptor for the XML resource that this parser works on.



importBeanDefinitionResource
protected void importBeanDefinitionResource(Element ele) throws BeanDefinitionStoreException(Code)
Parse an "import" element and load the bean definitions from the given resource into the bean factory.



initDefaults
protected void initDefaults(Element root)(Code)
Initialize the default lazy-init, autowire and dependency check settings.
See Also:   SpringNamespaceHelper.setDefaultLazyInit
See Also:   SpringNamespaceHelper.setDefaultAutowire
See Also:   SpringNamespaceHelper.setDefaultDependencyCheck



parseBeanDefinitionElement
protected BeanDefinitionHolder parseBeanDefinitionElement(Element ele, boolean isInnerBean) throws BeanDefinitionStoreException(Code)
Parse a standard bean definition into a BeanDefinitionHolder, including bean name and aliases.

Bean elements specify their canonical name as "id" attribute and their aliases as a delimited "name" attribute.

If no "id" specified, uses the first name in the "name" attribute as canonical name, registering all others as aliases.

Callers should specify whether this element represents an inner bean definition or not by setting the isInnerBean argument appropriately




parseBeanDefinitionElement
protected BeanDefinition parseBeanDefinitionElement(Element ele, String beanName) throws BeanDefinitionStoreException(Code)
Parse the BeanDefinition itself, without regard to name or aliases.



parseBeanDefinitions
protected int parseBeanDefinitions(Element root) throws BeanDefinitionStoreException(Code)
Parse the elements at the root level in the document: "import", "alias", "bean".
Parameters:
  root - the DOM root element of the document the number of bean definitions found



parseConstructorArgElement
protected void parseConstructorArgElement(Element ele, String beanName, ConstructorArgumentValues cargs) throws BeanDefinitionStoreException(Code)
Parse a constructor-arg element.



parseConstructorArgElements
protected ConstructorArgumentValues parseConstructorArgElements(Element beanEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse constructor-arg sub-elements of the given bean element.



parseCustomElement
protected int parseCustomElement(Element ele)(Code)



parseKeyElement
protected Object parseKeyElement(Element keyEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse a key sub-element of a map element.



parseListElement
protected List parseListElement(Element collectionEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse a list element.



parseLookupOverrideSubElements
protected void parseLookupOverrideSubElements(Element beanEle, String beanName, MethodOverrides overrides) throws BeanDefinitionStoreException(Code)
Parse lookup-override sub-elements of the given bean element.



parseMapElement
protected Map parseMapElement(Element mapEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse a map element.



parsePropertyElement
protected void parsePropertyElement(Element ele, String beanName, MutablePropertyValues pvs) throws BeanDefinitionStoreException(Code)
Parse a property element.



parsePropertyElements
public MutablePropertyValues parsePropertyElements(Element beanEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse property sub-elements of the given bean element.



parsePropertySubElement
public Object parsePropertySubElement(Element ele, String beanName) throws BeanDefinitionStoreException(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



parsePropertyValue
protected Object parsePropertyValue(Element ele, String beanName, String propertyName) throws BeanDefinitionStoreException(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
protected Properties parsePropsElement(Element propsEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse a props element.



parseReplacedMethodSubElements
protected void parseReplacedMethodSubElements(Element beanEle, String beanName, MethodOverrides overrides) throws BeanDefinitionStoreException(Code)
Parse replaced-method sub-elements of the given bean element.



parseSetElement
protected Set parseSetElement(Element collectionEle, String beanName) throws BeanDefinitionStoreException(Code)
Parse a set element.



postProcessXml
protected void postProcessXml(Element root) throws BeanDefinitionStoreException(Code)
Allow the XML to be extensible by processing any custom element types last, after we finished processing the bean definitions. This method is a natural extension point for any other custom post-processing of the XML.

Default implementation is empty. Subclasses can override this method to convert custom elements into standard Spring bean definitions, for example. Implementors have access to the parser's bean definition reader and the underlying XML resource, through the corresponding accessors.
See Also:   SpringNamespaceHelper.getBeanDefinitionReader()
See Also:   SpringNamespaceHelper.getResource()




preProcessXml
protected void preProcessXml(Element root) throws BeanDefinitionStoreException(Code)
Allow the XML to be extensible by processing any custom element types first, before we start to process the bean definitions. This method is a natural extension point for any other custom pre-processing of the XML.

Default implementation is empty. Subclasses can override this method to convert custom elements into standard Spring bean definitions, for example. Implementors have access to the parser's bean definition reader and the underlying XML resource, through the corresponding accessors.
See Also:   SpringNamespaceHelper.getBeanDefinitionReader()
See Also:   SpringNamespaceHelper.getResource()




registerBeanDefinitions
public int registerBeanDefinitions(BeanDefinitionReader reader, Document doc, Resource resource) throws BeanDefinitionStoreException(Code)
Parses bean definitions according to the "spring-beans" DTD.

Opens a DOM Document; then initializes the default settings specified at <beans> level; then parses the contained bean definitions.




registerBeanDefinitions
public void registerBeanDefinitions(Document pDocument, ReaderContext pReaderContext) throws BeanDefinitionStoreException(Code)



setDefaultAutowire
final protected void setDefaultAutowire(String defaultAutowire)(Code)
Set the default autowire setting for the document that's currently parsed.



setDefaultDependencyCheck
final protected void setDefaultDependencyCheck(String defaultDependencyCheck)(Code)
Set the default dependency-check setting for the document that's currently parsed.



setDefaultDestroyMethod
final protected void setDefaultDestroyMethod(String defaultDestroyMethod)(Code)
Set the default dependency-destroy-method setting for the document that's currently parsed.



setDefaultInitMethod
final protected void setDefaultInitMethod(String defaultInitMethod)(Code)
Set the default dependency-init-method setting for the document that's currently parsed.



setDefaultLazyInit
final protected void setDefaultLazyInit(String defaultLazyInit)(Code)
Set the default lazy-init flag for the document that's currently parsed.



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.