Package ru.vyarus.guicey.jdbi3.dbi
Interface ConfigAwareProvider<T,C extends io.dropwizard.core.Configuration>
-
- Type Parameters:
T- provided object typeC- configuration type
- All Known Implementing Classes:
SimpleDbiProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConfigAwareProvider<T,C extends io.dropwizard.core.Configuration>Helper for implementing lazy initialization. Useful in initialization part where bundles are configured. For example, to construct some dropwizard integration object and use it in guice integrations later.- Since:
- 31.08.2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget(C configuration, io.dropwizard.core.setup.Environment environment)Called to provide required object.
-