public class MapperInstaller
extends java.lang.Object
implements ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller, ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
RowMapper 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,
row mappers doc| Constructor and Description |
|---|
MapperInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindExtension(com.google.inject.Binder binder,
java.lang.Class<?> type,
boolean lazy) |
<T> void |
checkBinding(com.google.inject.Binder binder,
java.lang.Class<T> type,
com.google.inject.Binding<T> manualBinding) |
void |
installBinding(com.google.inject.Binder binder,
java.lang.Class<?> type) |
boolean |
matches(java.lang.Class<?> type) |
void |
report() |
public boolean matches(java.lang.Class<?> type)
matches in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstallerpublic void bindExtension(com.google.inject.Binder binder,
java.lang.Class<?> type,
boolean lazy)
bindExtension in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic <T> void checkBinding(com.google.inject.Binder binder,
java.lang.Class<T> type,
com.google.inject.Binding<T> manualBinding)
checkBinding in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic void installBinding(com.google.inject.Binder binder,
java.lang.Class<?> type)
installBinding in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic void report()
report in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller