Class JpaTransactionTemplateFactoryBeanRegistrar
java.lang.Object
com.broadleafcommerce.common.jpa.data.entitymanager.JpaTransactionTemplateFactoryBeanRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.annotation.ImportBeanDefinitionRegistrar
,org.springframework.context.EnvironmentAware
public class JpaTransactionTemplateFactoryBeanRegistrar
extends Object
implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Define a
TransactionTemplate
factory bean for the route defined in JpaDataRoute
.
This will expose a TransactionTemplate tied to the particular EntityManagerFactory (and backing
datastore) associated with this route. This TransactionTemplate can be injected into components
and is useful for programmatic declaration of transactionally scoped logic. The
TransactionTemplate bean is exposed with the id JpaDataRoute.routeKey()
appended by
"TransactionTemplate".- Author:
- Jeff Fischer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
registerBean
(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Map<String, Object> attributes) void
registerBeanDefinitions
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) void
setEnvironment
(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
JpaTransactionTemplateFactoryBeanRegistrar
public JpaTransactionTemplateFactoryBeanRegistrar()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitions
in interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
registerBean
-