Class JpaParserUtils
java.lang.Object
org.springframework.integration.jpa.config.xml.JpaParserUtils
Contains various utility methods for parsing JPA Adapter specific namespace
elements and generation the respective
BeanDefinitions.- Since:
- 2.2
- Author:
- Amol Nayak, Gunnar Hillert, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeanDefinitionBuildergetJpaExecutorBuilder(Element element, ParserContext parserContext) Create a newBeanDefinitionBuilderfor the classJpaExecutor.static ManagedList<BeanDefinition>getJpaParameterBeanDefinitions(Element jpaComponent, ParserContext parserContext) Create aManagedListofBeanDefinitions containing parsed JPA Parameters.static BeanDefinitionBuildergetOutboundGatewayJpaExecutorBuilder(Element gatewayElement, ParserContext parserContext) Create a newBeanDefinitionBuilderfor the classJpaExecutorthat is specific for JPA Outbound Gateways.
-
Method Details
-
getJpaExecutorBuilder
public static BeanDefinitionBuilder getJpaExecutorBuilder(Element element, ParserContext parserContext) Create a newBeanDefinitionBuilderfor the classJpaExecutor. Initialize the wrappedJpaExecutorwith common properties.- Parameters:
element- Must not be nullparserContext- Must not be null- Returns:
- The BeanDefinitionBuilder for the JpaExecutor
-
getOutboundGatewayJpaExecutorBuilder
public static BeanDefinitionBuilder getOutboundGatewayJpaExecutorBuilder(Element gatewayElement, ParserContext parserContext) Create a newBeanDefinitionBuilderfor the classJpaExecutorthat is specific for JPA Outbound Gateways. Initializes the wrappedJpaExecutorwith common properties. Delegates togetJpaExecutorBuilder(Element, ParserContext)- Parameters:
gatewayElement- Must not be nullparserContext- Must not be null- Returns:
- The BeanDefinitionBuilder for the JpaExecutor
-
getJpaParameterBeanDefinitions
public static ManagedList<BeanDefinition> getJpaParameterBeanDefinitions(Element jpaComponent, ParserContext parserContext) Create aManagedListofBeanDefinitions containing parsed JPA Parameters.- Parameters:
jpaComponent- Must not be nullparserContext- Must not be null- Returns:
ManagedListofBeanDefinitions
-