Package ru.vyarus.guicey.jdbi3.dbi
Class SimpleDbiProvider<C extends io.dropwizard.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.Configuration> extends java.lang.Object implements ConfigAwareProvider<org.jdbi.v3.core.Jdbi,C>
Simple DBI configurer, requiring just database configuration.- Since:
- 31.08.2018
-
-
Constructor Summary
Constructors Constructor Description SimpleDbiProvider(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory,C> database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jdbi.v3.core.Jdbiget(C configuration, io.dropwizard.setup.Environment environment)Called to provide required object.
-
-
-
Constructor Detail
-
SimpleDbiProvider
public SimpleDbiProvider(ConfigAwareProvider<io.dropwizard.db.PooledDataSourceFactory,C> database)
-
-
Method Detail
-
get
public org.jdbi.v3.core.Jdbi get(C configuration, io.dropwizard.setup.Environment environment)
Description copied from interface:ConfigAwareProviderCalled to provide required object.- Specified by:
getin interfaceConfigAwareProvider<org.jdbi.v3.core.Jdbi,C extends io.dropwizard.Configuration>- Parameters:
configuration- configuration instanceenvironment- environment instance- Returns:
- object instance
-
-