org.springframework.integration.config
Class IntegrationNamespaceUtils
java.lang.Object
org.springframework.integration.config.IntegrationNamespaceUtils
public abstract class IntegrationNamespaceUtils
- extends java.lang.Object
Shared utility methods for integration namespace parsers.
- Author:
- Mark Fisher, Marius Bogoevici
Method Summary |
static java.lang.String |
parseBeanDefinitionElement(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
|
static void |
setBeanReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String propertyName,
org.w3c.dom.Element element,
java.lang.String attributeName)
Populates the property given by propertyName on the given bean definition
to a reference to a bean identified by the value of the attribute
specified by attributeName, if that attribute is defined in the element |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String propertyName,
org.w3c.dom.Element element,
java.lang.String attributeName)
Populates the property identified by propertyName on the bean definition
to the value of the attribute specified by attributeName, if that
attribute is defined in the element |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegrationNamespaceUtils
public IntegrationNamespaceUtils()
setValueIfAttributeDefined
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String propertyName,
org.w3c.dom.Element element,
java.lang.String attributeName)
- Populates the property identified by propertyName on the bean definition
to the value of the attribute specified by attributeName, if that
attribute is defined in the element
- Parameters:
beanDefinition
- - the bean definition to be configuredpropertyName
- - the name of the bean property to be setelement
- - the XML element where the attribute should be definedattributeName
- - the name of the attribute whose value will be set
on the property
setBeanReferenceIfAttributeDefined
public static void setBeanReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String propertyName,
org.w3c.dom.Element element,
java.lang.String attributeName)
- Populates the property given by propertyName on the given bean definition
to a reference to a bean identified by the value of the attribute
specified by attributeName, if that attribute is defined in the element
- Parameters:
beanDefinition
- - the bean definition to be configuredpropertyName
- - the name of the bean property to be setelement
- - the XML element where the attribute should be definedattributeName
- - the id of the bean which will be used to populate
the property
parseBeanDefinitionElement
public static java.lang.String parseBeanDefinitionElement(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)