Class FlywayFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<org.flywaydb.core.Flyway>

    public class FlywayFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<org.flywaydb.core.Flyway>
    Factory to generate a Flyway instance for Fedora.
    Author:
    whikloj
    • Method Detail

      • create

        public static FlywayFactory create()
        Static constructor
        Returns:
        a new FlywayFactory instance.
      • getObject

        public org.flywaydb.core.Flyway getObject()
                                           throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<org.flywaydb.core.Flyway>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.flywaydb.core.Flyway>
      • setDatabaseType

        public FlywayFactory setDatabaseType​(String type)
        Set the type of database to pick the correct schema files.
        Parameters:
        type - database type
        Returns:
        this factory