C - configuration typepublic class SimpleDbiProvider<C extends io.dropwizard.Configuration> extends java.lang.Object implements ConfigAwareProvider<org.jdbi.v3.core.Jdbi,C>
| Constructor and Description |
|---|
SimpleDbiProvider(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory,C> database) |
| Modifier and Type | Method and Description |
|---|---|
org.jdbi.v3.core.Jdbi |
get(C configuration,
io.dropwizard.setup.Environment environment)
Called to provide required object.
|
public SimpleDbiProvider(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory,C> database)
public org.jdbi.v3.core.Jdbi get(C configuration, io.dropwizard.setup.Environment environment)
ConfigAwareProviderget in interface ConfigAwareProvider<org.jdbi.v3.core.Jdbi,C extends io.dropwizard.Configuration>configuration - configuration instanceenvironment - environment instance