Class JpaDataRouteEntityManagerFactoryBeanRegistrar
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.data.entitymanager.JpaDataRouteEntityManagerFactoryBeanRegistrar
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.annotation.ImportBeanDefinitionRegistrar,org.springframework.context.EnvironmentAware
public class JpaDataRouteEntityManagerFactoryBeanRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware
Register an EntityManagerFactory bean definition based on a particular route defined byJpaDataRoute. The EntityManagerFactory is exposed with the bean idJpaDataRoute.routeKey()appended by "EntityManagerFactory".- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJpaDataRouteEntityManagerFactoryBeanRegistrar.DataRouteEntityManagerFactoryBean
-
Constructor Summary
Constructors Constructor Description JpaDataRouteEntityManagerFactoryBeanRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
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
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
-