T - expected extension type (or Object when no super type (e.g. for annotated beans))public interface FeatureInstaller<T>
Installers are not guice beans: they are instantiated during guice context start and used to register additional beans in guice context.
Installer may choose from three possible types of installation:BindingInstaller to apply specific
guice bindings (called in process of injector creation, whereas other installer are called after)TypeInstaller to register class
in environment or somewhere elseInstanceInstaller to register instance
in environment or somewhere elseJerseyInstaller to register jersey related
extension| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.lang.Class<?> type)
NOTE: consider using
ru.vyarus.dropwizard.guice.module.installer.util.FeatureUtils to simplify checks
(for example, types most likely must be checks to be not abstract). |
void |
report()
Called to log registered endpoints in dropwizard log fashion.
|
boolean matches(java.lang.Class<?> type)
ru.vyarus.dropwizard.guice.module.installer.util.FeatureUtils to simplify checks
(for example, types most likely must be checks to be not abstract).
When type accepted by any extension it's registered in guice module.
type - type to checkvoid report()
Reporter to simplify reporting.
Method may do nothing if reporting not required