
com.bendb.dropwizard.jooq.JooqConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-jooq Show documentation
Show all versions of dropwizard-jooq Show documentation
Addon bundle for Dropwizard to support jOOQ for database access
package com.bendb.dropwizard.jooq;
import com.google.common.collect.ImmutableSortedMap;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
import io.dropwizard.db.DatabaseConfiguration;
import java.util.SortedMap;
public interface JooqConfiguration extends DatabaseConfiguration,
MultiDatabaseConfiguration {
JooqFactory getJooqFactory(C configuration);
/**
* Override this method to use multiple databases, with instances referenced by name.
*/
default SortedMap getSecondaryDataSourceFactories(C configuration) {
return ImmutableSortedMap.of();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy