Class JpaEmbeddedDataSourceFactoryBeanRegistrar
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.data.entitymanager.JpaEmbeddedDataSourceFactoryBeanRegistrar
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportBeanDefinitionRegistrar,org.springframework.context.EnvironmentAware
public class JpaEmbeddedDataSourceFactoryBeanRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Register a data source for an embedded database. This is generally used during testing and is engaged automatically in tests when theAutoConfigureTestDbannotation is declared. Declaring thespring.test.database.hsqlproperty to true can also be used to drive this behavior. If a datasource with the bean id ofJpaDataRoute.routeKey()appended by "DataSource" is present already, then this behavior is automatically skipped.- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJpaEmbeddedDataSourceFactoryBeanRegistrar.EmbeddedDatasourceFactoryBean
-
Constructor Summary
Constructors Constructor Description JpaEmbeddedDataSourceFactoryBeanRegistrar()
-
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)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
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
-