public abstract class AbstractBeanDefinitionParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
Constructor and Description |
---|
AbstractBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected static Element |
getDirectChild(Element parent,
String... names)
Returns the first direct child element of the parent element with a name that matches any of the supplied names.
|
protected static Duration |
parseDuration(String value)
Returns a
Duration for the supplied value. |
protected static Period |
parsePeriod(String value)
Returns a
Period for the supplied value. |
protected void |
setIfPresent(Element element,
String attribute,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Sets a property if the given attribute exists on the element.
|
protected void |
setIfPresent(Element element,
String attribute,
String property,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Sets a property if the given attribute exists on the element.
|
doParse, doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
protected final Logger logger
protected static Period parsePeriod(String value)
Period
for the supplied value.value
- to parseprotected static Duration parseDuration(String value)
Duration
for the supplied value.value
- to parseprotected static Element getDirectChild(Element parent, String... names)
parent
- element to inspectnames
- local names of the element to returnprotected void setIfPresent(Element element, String attribute, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
element
- from which to obtain propertyattribute
- value for obtaining propertybuilder
- to receive propertyprotected void setIfPresent(Element element, String attribute, String property, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
element
- from which to obtain propertyproperty
- to setattribute
- value for obtaining propertybuilder
- to receive propertyCopyright © 2003-2019 Virginia Tech. All Rights Reserved.