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 aTransactionTemplatefactory bean for the route defined inJpaDataRoute. 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 idJpaDataRoute.routeKey()appended by "TransactionTemplate".- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJpaTransactionTemplateFactoryBeanRegistrar.TransactionTemplateFactoryBean
-
Constructor Summary
Constructors Constructor Description JpaTransactionTemplateFactoryBeanRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidregisterBean(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Map<String,Object> attributes)voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidsetEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)- Specified by:
registerBeanDefinitionsin interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
-