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
BeanDefinition
s.- Since:
- 2.2
- Author:
- Amol Nayak, Gunnar Hillert, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeanDefinitionBuilder
getJpaExecutorBuilder
(Element element, ParserContext parserContext) Create a newBeanDefinitionBuilder
for the classJpaExecutor
.static ManagedList<BeanDefinition>
getJpaParameterBeanDefinitions
(Element jpaComponent, ParserContext parserContext) Create aManagedList
ofBeanDefinition
s containing parsed JPA Parameters.static BeanDefinitionBuilder
getOutboundGatewayJpaExecutorBuilder
(Element gatewayElement, ParserContext parserContext) Create a newBeanDefinitionBuilder
for the classJpaExecutor
that is specific for JPA Outbound Gateways.
-
Method Details
-
getJpaExecutorBuilder
public static BeanDefinitionBuilder getJpaExecutorBuilder(Element element, ParserContext parserContext) Create a newBeanDefinitionBuilder
for the classJpaExecutor
. Initialize the wrappedJpaExecutor
with 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 newBeanDefinitionBuilder
for the classJpaExecutor
that is specific for JPA Outbound Gateways. Initializes the wrappedJpaExecutor
with 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 aManagedList
ofBeanDefinition
s containing parsed JPA Parameters.- Parameters:
jpaComponent
- Must not be nullparserContext
- Must not be null- Returns:
ManagedList
ofBeanDefinition
s
-