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 by
 
JpaDataRoute. The EntityManagerFactory is exposed with the bean id
 JpaDataRoute.routeKey() appended by "EntityManagerFactory".- Author:
- Jeff Fischer
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidregisterBeanDefinitions(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) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrarregisterBeanDefinitions
- 
Constructor Details- 
JpaDataRouteEntityManagerFactoryBeanRegistrarpublic JpaDataRouteEntityManagerFactoryBeanRegistrar()
 
- 
- 
Method Details- 
registerBeanDefinitionspublic void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) - Specified by:
- registerBeanDefinitionsin interface- org.springframework.context.annotation.ImportBeanDefinitionRegistrar
 
- 
setBeanFactorypublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
- setBeanFactoryin interface- org.springframework.beans.factory.BeanFactoryAware
- Throws:
- org.springframework.beans.BeansException
 
- 
setEnvironmentpublic void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
- setEnvironmentin interface- org.springframework.context.EnvironmentAware
 
 
-