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 ConcurrencyPolicy |
parseConcurrencyPolicy(org.w3c.dom.Element element)
|
static void |
setBeanReferenceIfAttributeDefined(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
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.RootBeanDefinition beanDefinition,
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 |
CORE_SIZE_ATTRIBUTE
private static final java.lang.String CORE_SIZE_ATTRIBUTE
- See Also:
- Constant Field Values
MAX_SIZE_ATTRIBUTE
private static final java.lang.String MAX_SIZE_ATTRIBUTE
- See Also:
- Constant Field Values
QUEUE_CAPACITY_ATTRIBUTE
private static final java.lang.String QUEUE_CAPACITY_ATTRIBUTE
- See Also:
- Constant Field Values
KEEP_ALIVE_ATTRIBUTE
private static final java.lang.String KEEP_ALIVE_ATTRIBUTE
- See Also:
- Constant Field Values
IntegrationNamespaceUtils
public IntegrationNamespaceUtils()
parseConcurrencyPolicy
public static ConcurrencyPolicy parseConcurrencyPolicy(org.w3c.dom.Element element)
setValueIfAttributeDefined
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
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.RootBeanDefinition beanDefinition,
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