Class CDILiquibase

  • All Implemented Interfaces:

    public class CDILiquibase
    extends Object
    implements javax.enterprise.inject.spi.Extension
    A CDI wrapper for Liquibase.

    Example Configuration:

    This CDI configuration example will cause liquibase to run automatically when the CDI container is initialized. It will load db-changelog.xml from the classpath and apply it against myDataSource.

    Various producers methods are required to resolve the dependencies, i.e.

     public class CDILiquibaseProducer {