public abstract class ParsingUtils extends Object
BeanDefinition,
BeanDefinitionBuilder,
ParserContext,
Attr,
Element| Constructor and Description |
|---|
ParsingUtils() |
public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, Attr attribute)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, Attr attribute, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, String value)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, String value, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, Attr attribute)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, Attr attribute, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, String value)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addOptionalPropertyValue(BeanDefinitionBuilder builder, String propertyName, String value, String defaultValue)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyReference(BeanDefinitionBuilder builder, String propertyName, Attr attribute)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyReference(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyReference(BeanDefinitionBuilder builder, String propertyName, String value)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyValue(BeanDefinitionBuilder builder, String propertyName, Attr attribute)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyValue(BeanDefinitionBuilder builder, String propertyName, Element element, String attributeName)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static void addRequiredPropertyValue(BeanDefinitionBuilder builder, String propertyName, String value)
addProperty(BeanDefinitionBuilder, String, String, String, boolean, boolean).public static BeanDefinitionBuilder addProperty(BeanDefinitionBuilder builder, String propertyName, String value, String defaultValue, boolean required, boolean reference)
BeanDefinitionBuilder with an optional
default value if the value has not been specified.
If required is false, value is null or empty,
and defaultValue is null or empty, then no property is added to the bean definition
and this method silently returns.builder - BeanDefinitionBuilder used to build the BeanDefinition.propertyName - name of the property to add.value - value for the property being added.defaultValue - default value for the property if value is null or empty.required - If true, then value must not be null or empty. If false,
then value may be null and the defaultValue will be used. If required is
false, value is null or empty, and defaultValue is null or empty,
then no property is added to the bean definition and this method silently returns.reference - If true, then the valuevalue for the named property is
considered a reference to another bean in the Spring context.BeanDefinitionBuilder.IllegalArgumentException - if either the BeanDefinitionBuilder is null
or the propertyName has not been specified.BeanDefinitionBuilder.addPropertyReference(String, String),
BeanDefinitionBuilder.addPropertyValue(String, Object)public static AbstractBeanDefinition getSourceBeanDefinition(BeanDefinitionBuilder builder, ParserContext parserContext, Element element)
BeanDefinition built from the given BeanDefinitionBuilder enriched with
source meta-data derived from the given Element.builder - BeanDefinitionBuilder used to build the BeanDefinition.parserContext - ParserContext used to track state during the parsing operation.element - DOM Element defining the meta-data that is the source of the BeanDefinitions
configuration.BeanDefinition built by the given BeanDefinitionBuilder.IllegalArgumentException - if the BeanDefinitionBuilder or ParserContext are null.public static AbstractBeanDefinition getSourceBeanDefinition(BeanDefinitionBuilder builder, Object source)
AbstractBeanDefinition built from the given BeanDefinitionBuilder with the given
extracted source applied.builder - BeanDefinitionBuilder used to build the BeanDefinition.source - source meta-data used by the builder to construct the BeanDefinition.BeanDefinition built by the given BeanDefinitionBuilder.IllegalArgumentException - if BeanDefinitionBuilder is null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.