Class JpaDataRoutableDataSourceBeanRegistrar

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

public class JpaDataRoutableDataSourceBeanRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Introduce a bean definition describing a RoutableDataSource factory bean. This is useful for participating in a composite RoutingJpaDataSource instance.
Author:
Jeff Fischer
  • Constructor Details

    • JpaDataRoutableDataSourceBeanRegistrar

      public JpaDataRoutableDataSourceBeanRegistrar()
  • Method Details

    • 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