public class MapperInstaller
extends java.lang.Object
implements ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller<org.skife.jdbi.v2.tweak.ResultSetMapper>, ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
ResultSetMapper and register them. Register mappers as singletons.
Reports all installed mappers to console.
Mappers are normal guice beans and so may use constructor injection, aop etc.
for actual installation| Constructor and Description |
|---|
MapperInstaller() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
install(com.google.inject.Binder binder,
java.lang.Class<? extends T> type,
boolean lazy) |
boolean |
matches(java.lang.Class<?> type) |
void |
report() |
public boolean matches(java.lang.Class<?> type)
matches in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller<org.skife.jdbi.v2.tweak.ResultSetMapper>public <T> void install(com.google.inject.Binder binder,
java.lang.Class<? extends T> type,
boolean lazy)
install in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic void report()
report in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller<org.skife.jdbi.v2.tweak.ResultSetMapper>