All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.joschi.dropwizard.flyway.FlywayBundle Maven / Gradle / Ivy

package com.github.joschi.dropwizard.flyway;

import io.dropwizard.Bundle;
import io.dropwizard.Configuration;
import io.dropwizard.db.DatabaseConfiguration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import io.dropwizard.util.Generics;

public abstract class FlywayBundle implements Bundle, DatabaseConfiguration {
    @Override
    public final void initialize(final Bootstrap bootstrap) {
        final Class klass = Generics.getTypeParameter(getClass(), Configuration.class);
        bootstrap.addCommand(new DbCommand(this, klass));
    }

    @Override
    public final void run(final Environment environment) {
        // nothing doing
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy