Class SimpleDbiProvider<C extends io.dropwizard.Configuration>

  • Type Parameters:
    C - configuration type
    All Implemented Interfaces:
    ConfigAwareProvider<org.skife.jdbi.v2.DBI,​C>

    public class SimpleDbiProvider<C extends io.dropwizard.Configuration>
    extends java.lang.Object
    implements ConfigAwareProvider<org.skife.jdbi.v2.DBI,​C>
    Simple DBI configurer, requiring just database configuration.
    Since:
    05.12.2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.skife.jdbi.v2.DBI get​(C configuration, io.dropwizard.setup.Environment environment)
      Called to provide required object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleDbiProvider

        public SimpleDbiProvider​(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory,​C> database)
    • Method Detail

      • get

        public org.skife.jdbi.v2.DBI get​(C configuration,
                                         io.dropwizard.setup.Environment environment)
        Description copied from interface: ConfigAwareProvider
        Called to provide required object.
        Specified by:
        get in interface ConfigAwareProvider<org.skife.jdbi.v2.DBI,​C extends io.dropwizard.Configuration>
        Parameters:
        configuration - configuration instance
        environment - environment instance
        Returns:
        object instance