public class RepositoryInstaller
extends java.lang.Object
implements ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller<java.lang.Object>, ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstaller
JdbiRepository and register them. Such classes may be then
injected as usual beans and used as usual daos. All daos will participate in the thread-bound transaction,
declared by transaction annotation, transaction template or manually with unit manager.
Dao may use any guice-related annotations because beans participate in guice aop. This is done by creating special guice-managed proxy class (where guice could apply aop). These proxies delegate all method calls to JDBI-managed proxies.
default annotation,
for template usage,
for low level usage without transaction| Constructor and Description |
|---|
RepositoryInstaller() |
| 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<java.lang.Object>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<java.lang.Object>