public class ManagedInstaller extends java.lang.Object implements FeatureInstaller<io.dropwizard.lifecycle.Managed>, InstanceInstaller<io.dropwizard.lifecycle.Managed>, Ordered
io.dropwizard.lifecycle.Managed and register them in environment.| Constructor and Description |
|---|
ManagedInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
install(io.dropwizard.setup.Environment environment,
io.dropwizard.lifecycle.Managed instance)
Use
FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type. |
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.
|
public boolean matches(java.lang.Class<?> type)
FeatureInstallerru.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.
matches in interface FeatureInstaller<io.dropwizard.lifecycle.Managed>type - type to checkpublic void install(io.dropwizard.setup.Environment environment,
io.dropwizard.lifecycle.Managed instance)
InstanceInstallerFeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.install in interface InstanceInstaller<io.dropwizard.lifecycle.Managed>environment - environment objectinstance - extension instancepublic void report()
FeatureInstallerReporter to simplify reporting.
Method may do nothing if reporting not required
report in interface FeatureInstaller<io.dropwizard.lifecycle.Managed>