BeanDefinitionParsers or
BeanDefinitionDecorators.
ParserContext, DefaultBeanDefinitionDocumentReader
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final DocumentDefaultsDefinition | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected final Log | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final ParseState | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final XmlReaderContext | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final String | |
| public static final String | TRUE_VALUE
Value of a T/F attribute that represents true. |
| public static final String | |
| private final Set | usedNames
Stores all used bean names so we can enforce uniqueness on a per beans-element basis. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | BeanDefinitionParserDelegate(XmlReaderContext readerContext)
Create a new BeanDefinitionParserDelegate associated with the supplied
|
| Modifier and Type | Method and Description |
|---|---|
| protected TypedStringValue | buildTypedStringValue(String value, String targetTypeName)
Build a typed String value Object for the given raw value. |
| protected final Object | buildTypedStringValueForMap(String value, String defaultTypeName, Element entryEle)
Build a typed String value Object for the given raw value. |
| protected void | checkNameUniqueness(String beanName, List<String> aliases, Element beanElement)
Validate that the specified bean name and aliases have not been used already within the current level of beans element nesting. |
| protected AbstractBeanDefinition | Returns: the newly created bean definitionthe name of the bean class className, String the name of the bean's parent bean parentName)Create a bean definition for the given class name and parent name. |
| public BeanDefinitionHolder | Returns: the decorated bean definitionthe current element ele, BeanDefinitionHolder the current bean definition originalDef)Decorate the given bean definition through a namespace handler, if applicable. |
| public BeanDefinitionHolder | Returns: the decorated bean definitionthe current element ele, BeanDefinitionHolder the current bean definition originalDef, BeanDefinition the containing bean definition (if any) containingBd)Decorate the given bean definition through a namespace handler, if applicable. |
| public BeanDefinitionHolder | Returns: the decorated bean definitionthe current child node node, BeanDefinitionHolder the current bean definition originalDef, BeanDefinition the containing bean definition (if any) containingBd)Decorate the given bean definition through a namespace handler, if applicable. |
| protected void | |
| protected void | |
| protected void | |
| protected Object | extractSource(Element ele)
Invoke the |
| public String[] | getAutowireCandidatePatterns()
Return any patterns provided in the 'default-autowire-candidates'
attribute of the top-level |
| public int | getAutowireMode(String attrValue)
Parse the given autowire attribute value into
|
| public BeanDefinitionDefaults | getBeanDefinitionDefaults()
Return the default settings for bean definitions as indicated within
the attributes of the top-level |
| public DocumentDefaultsDefinition | |
| public String | |
| public String | |
| public final XmlReaderContext | |
| public void | |
| public void | initDefaults(Element root, BeanDefinitionParserDelegate parent)
Initialize the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings. |
| private boolean | |
| public boolean | isDefaultNamespace(String namespaceUri)
Determine whether the given URI indicates the default namespace. |
| public boolean | |
| private boolean | |
| public boolean | nodeNameEquals(Node
the node to compare node, String the name to check for desiredName)Determine whether the name of the supplied node is equal to the supplied name. |
| public Object | |
| public AbstractBeanDefinition | Returns: a bean definition initialized according to the bean element attributesbean declaration element ele, String bean name beanName, BeanDefinition containing bean definition containingBean, AbstractBeanDefinition bd)Apply the attributes of the given bean element to the given bean * definition. |
| public BeanDefinitionHolder | |
| public BeanDefinitionHolder | parseBeanDefinitionElement(Element ele, BeanDefinition containingBean)
Parses the supplied |
| public AbstractBeanDefinition | parseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)
Parse the bean definition itself, without regard to name or aliases. |
| protected void | parseCollectionElements(NodeList elementNodes, Collection<Object> target, BeanDefinition bd, String defaultElementType)
|
| public void | |
| public void | parseConstructorArgElements(Element beanEle, BeanDefinition bd)
Parse constructor-arg sub-elements of the given bean element. |
| public BeanDefinition | Returns: the resulting bean definitionthe element to parse ele)Parse a custom element (outside the default namespace). |
| public BeanDefinition | Returns: the resulting bean definitionthe element to parse ele, BeanDefinition the containing bean definition (if any) containingBd)Parse a custom element (outside the default namespace). |
| public Object | |
| protected Object | parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName)
Parse a key sub-element of a map element. |
| public List | |
| public void | parseLookupOverrideSubElements(Element beanEle, MethodOverrides overrides)
Parse lookup-override sub-elements of the given bean element. |
| public Map | |
| public boolean | parseMergeAttribute(Element collectionElement)
Parse the merge attribute of a collection element, if any. |
| public void | parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor)
Parse the meta elements underneath the given element, if any. |
| private BeanDefinitionHolder | |
| public void | |
| public void | parsePropertyElements(Element beanEle, BeanDefinition bd)
Parse property sub-elements of the given bean element. |
| public Object | parsePropertySubElement(Element
subelement of property element; we don't know which yet ele, BeanDefinition the current bean definition (if any) bd)Parse a value, ref or collection sub-element of a property or constructor-arg element. |
| public Object | parsePropertySubElement(Element
subelement of property element; we don't know which yet ele, BeanDefinition the current bean definition (if any) bd, String the default type (class name) for any
defaultValueType)<value> tag that might be createdParse a value, ref or collection sub-element of a property or constructor-arg element. |
| public Object | parsePropertyValue(Element ele, BeanDefinition bd, String propertyName)
Get the value of a property element. |
| public Properties | |
| public void | |
| public void | parseQualifierElements(Element beanEle, AbstractBeanDefinition bd)
Parse qualifier sub-elements of the given bean element. |
| public void | parseReplacedMethodSubElements(Element beanEle, MethodOverrides overrides)
Parse replaced-method sub-elements of the given bean element. |
| public Set | |
| public Object | parseValueElement(Element ele, String defaultTypeName)
Return a typed String value Object for the given value element. |
| protected void | populateDefaults(DocumentDefaultsDefinition
the defaults to populate defaults, DocumentDefaultsDefinition the parent BeanDefinitionParserDelegate (if any) defaults to fall back to parentDefaults, Element the root element of the current bean definition document (or nested beans element) root)Populate the given DocumentDefaultsDefinition instance with the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings. |