public class RepositoryInstaller
extends java.lang.Object
implements ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller, 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 |
|---|---|
void |
bind(com.google.inject.Binder binder,
java.lang.Class<?> type,
boolean lazy) |
void |
extensionBound(com.google.inject.Stage stage,
java.lang.Class<?> type) |
<T> void |
manualBinding(com.google.inject.Binder binder,
java.lang.Class<T> type,
com.google.inject.Binding<T> binding) |
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 bind(com.google.inject.Binder binder,
java.lang.Class<?> type,
boolean lazy)
bind in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic <T> void manualBinding(com.google.inject.Binder binder,
java.lang.Class<T> type,
com.google.inject.Binding<T> binding)
manualBinding in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic void extensionBound(com.google.inject.Stage stage,
java.lang.Class<?> type)
extensionBound in interface ru.vyarus.dropwizard.guice.module.installer.install.binding.BindingInstallerpublic void report()
report in interface ru.vyarus.dropwizard.guice.module.installer.FeatureInstaller