Search in sources :

Example 1 with GuavaPlugin

use of org.jdbi.v3.guava.GuavaPlugin in project dropwizard by dropwizard.

the class JdbiFactory method configure.

/**
 * Overridable function to allow extra customization of the created {@link Jdbi}
 * instance.
 *
 * <p>
 * If this is overridden it is strongly recommend that
 * {@code super.configure(jdbi, configuration)} is invoked before any other
 * changes are made if you intend to use the default as a base so that the
 * customized settings will supersede the defaults
 * </p>
 *
 * @param jdbi
 */
protected void configure(final Jdbi jdbi) {
    jdbi.installPlugin(new SqlObjectPlugin());
    jdbi.installPlugin(new JodaTimePlugin());
    jdbi.installPlugin(new GuavaPlugin());
}
Also used : JodaTimePlugin(org.jdbi.v3.jodatime2.JodaTimePlugin) SqlObjectPlugin(org.jdbi.v3.sqlobject.SqlObjectPlugin) GuavaPlugin(org.jdbi.v3.guava.GuavaPlugin)

Aggregations

GuavaPlugin (org.jdbi.v3.guava.GuavaPlugin)1 JodaTimePlugin (org.jdbi.v3.jodatime2.JodaTimePlugin)1 SqlObjectPlugin (org.jdbi.v3.sqlobject.SqlObjectPlugin)1