org.springframework.integration.config
Class IntegrationNamespaceUtils

java.lang.Object
  extended by 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

Field Summary
private static java.lang.String CORE_SIZE_ATTRIBUTE
           
private static java.lang.String KEEP_ALIVE_ATTRIBUTE
           
private static java.lang.String MAX_SIZE_ATTRIBUTE
           
private static java.lang.String QUEUE_CAPACITY_ATTRIBUTE
           
 
Constructor Summary
IntegrationNamespaceUtils()
           
 
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
 

Field Detail

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
Constructor Detail

IntegrationNamespaceUtils

public IntegrationNamespaceUtils()
Method Detail

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 configured
propertyName - - the name of the bean property to be set
element - - the XML element where the attribute should be defined
attributeName - - 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 configured
propertyName - - the name of the bean property to be set
element - - the XML element where the attribute should be defined
attributeName - - the id of the bean which will be used to populate the property