Class JpaTransactionManagerFactoryBeanRegistrar

java.lang.Object
com.broadleafcommerce.common.jpa.data.entitymanager.JpaTransactionManagerFactoryBeanRegistrar
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware

public class JpaTransactionManagerFactoryBeanRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware
Define a TransactionManager factory bean for the route defined in JpaDataRoute. This will control all transactions tied to the particular EntityManagerFactory (and backing datastore) associated with this route. The TransactionManager bean is exposed with the id JpaDataRoute.routeKey() appended by "TransactionManager".
Author:
Jeff Fischer
  • Constructor Details

    • JpaTransactionManagerFactoryBeanRegistrar

      public JpaTransactionManagerFactoryBeanRegistrar()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware
    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    • registerBean

      protected void registerBean(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Map<String,Object> attributes)