Class JpaSpringLiquibaseFactoryBeanRegistrar
java.lang.Object
com.broadleafcommerce.common.jpa.data.entitymanager.JpaSpringLiquibaseFactoryBeanRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportBeanDefinitionRegistrar,org.springframework.context.EnvironmentAware
public class JpaSpringLiquibaseFactoryBeanRegistrar
extends Object
implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Define a
SpringLiquibase factory bean for the route defined in JpaDataRoute. This
will control all liquibase related behavior tied to the particular EntityManagerFactory (and
backing datastore) associated with this route. The bean is exposed with the id
JpaDataRoute.routeKey() appended by "SpringLiquibase".- Author:
- Jeff Fischer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) voidsetEnvironment(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
JpaSpringLiquibaseFactoryBeanRegistrar
public JpaSpringLiquibaseFactoryBeanRegistrar()
-
-
Method Details
-
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
-
isLiquibaseAvailable
protected boolean isLiquibaseAvailable()
-