Package ru.vyarus.guicey.jdbi3.dbi
Class SimpleDbiProvider<C extends io.dropwizard.core.Configuration>
java.lang.Object
ru.vyarus.guicey.jdbi3.dbi.SimpleDbiProvider<C>
- Type Parameters:
C- configuration type
- All Implemented Interfaces:
ConfigAwareProvider<org.jdbi.v3.core.Jdbi,C>
public class SimpleDbiProvider<C extends io.dropwizard.core.Configuration>
extends Object
implements ConfigAwareProvider<org.jdbi.v3.core.Jdbi,C>
Simple DBI configurer, requiring just database configuration.
- Since:
- 31.08.2018
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleDbiProvider(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory, C> database) Create configuration-aware jdbi provider. -
Method Summary
-
Constructor Details
-
SimpleDbiProvider
Create configuration-aware jdbi provider.- Parameters:
database- configuration provider
-
-
Method Details
-
get
Description copied from interface:ConfigAwareProviderCalled to provide required object.- Specified by:
getin interfaceConfigAwareProvider<org.jdbi.v3.core.Jdbi,C extends io.dropwizard.core.Configuration> - Parameters:
configuration- configuration instanceenvironment- environment instance- Returns:
- object instance
-