Spring Integration

org.springframework.integration.jpa.config.xml
Class JpaParserUtils

java.lang.Object
  extended by org.springframework.integration.jpa.config.xml.JpaParserUtils

public final class JpaParserUtils
extends java.lang.Object

Contains various utility methods for parsing JPA Adapter specific namesspace elements and generation the respective BeanDefinitions.

Since:
2.2
Author:
Amol Nayak, Gunnar Hillert

Method Summary
static org.springframework.beans.factory.support.BeanDefinitionBuilder getJpaExecutorBuilder(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
          Create a new BeanDefinitionBuilder for the class JpaExecutor.
static org.springframework.beans.factory.support.ManagedList<org.springframework.beans.factory.config.BeanDefinition> getJpaParameterBeanDefinitions(org.w3c.dom.Element jpaComponent, org.springframework.beans.factory.xml.ParserContext parserContext)
          Create a ManagedList of BeanDefinitions containing parsed JPA Parameters.
static org.springframework.beans.factory.support.BeanDefinitionBuilder getOutboundGatewayJpaExecutorBuilder(org.w3c.dom.Element gatewayElement, org.springframework.beans.factory.xml.ParserContext parserContext)
          Create a new BeanDefinitionBuilder for the class JpaExecutor that is specific for JPA Outbound Gateways.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJpaExecutorBuilder

public static org.springframework.beans.factory.support.BeanDefinitionBuilder getJpaExecutorBuilder(org.w3c.dom.Element element,
                                                                                                    org.springframework.beans.factory.xml.ParserContext parserContext)
Create a new BeanDefinitionBuilder for the class JpaExecutor. Initialize the wrapped JpaExecutor with common properties.

Parameters:
element - Must not be null
parserContext - Must not be null
Returns:
The BeanDefinitionBuilder for the JpaExecutor

getOutboundGatewayJpaExecutorBuilder

public static org.springframework.beans.factory.support.BeanDefinitionBuilder getOutboundGatewayJpaExecutorBuilder(org.w3c.dom.Element gatewayElement,
                                                                                                                   org.springframework.beans.factory.xml.ParserContext parserContext)
Create a new BeanDefinitionBuilder for the class JpaExecutor that is specific for JPA Outbound Gateways. Initializes the wrapped JpaExecutor with common properties. Delegates to getJpaExecutorBuilder(Element, ParserContext)

Parameters:
gatewayElement - Must not be null
parserContext - Must not be null
Returns:
The BeanDefinitionBuilder for the JpaExecutor

getJpaParameterBeanDefinitions

public static org.springframework.beans.factory.support.ManagedList<org.springframework.beans.factory.config.BeanDefinition> getJpaParameterBeanDefinitions(org.w3c.dom.Element jpaComponent,
                                                                                                                                                            org.springframework.beans.factory.xml.ParserContext parserContext)
Create a ManagedList of BeanDefinitions containing parsed JPA Parameters.

Parameters:
jpaComponent - Must not be null
parserContext - Must not be null
Returns:
ManagedList of BeanDefinitions

Spring Integration