public class LifeCycleInstaller extends java.lang.Object implements FeatureInstaller<org.eclipse.jetty.util.component.LifeCycle>, InstanceInstaller<org.eclipse.jetty.util.component.LifeCycle>, Ordered
org.eclipse.jetty.util.component.LifeCycle and register them in environment.| Constructor and Description |
|---|
LifeCycleInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
install(io.dropwizard.setup.Environment environment,
org.eclipse.jetty.util.component.LifeCycle 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<org.eclipse.jetty.util.component.LifeCycle>type - type to checkpublic void install(io.dropwizard.setup.Environment environment,
org.eclipse.jetty.util.component.LifeCycle instance)
InstanceInstallerFeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.install in interface InstanceInstaller<org.eclipse.jetty.util.component.LifeCycle>environment - environment objectinstance - extension instancepublic void report()
FeatureInstallerReporter to simplify reporting.
Method may do nothing if reporting not required
report in interface FeatureInstaller<org.eclipse.jetty.util.component.LifeCycle>