public class TaskInstaller extends java.lang.Object implements FeatureInstaller<io.dropwizard.servlets.tasks.Task>, InstanceInstaller<io.dropwizard.servlets.tasks.Task>
io.dropwizard.servlets.tasks.Task and register in environment.| Constructor and Description |
|---|
TaskInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
install(io.dropwizard.setup.Environment environment,
io.dropwizard.servlets.tasks.Task 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.servlets.tasks.Task>type - type to checkpublic void install(io.dropwizard.setup.Environment environment,
io.dropwizard.servlets.tasks.Task instance)
InstanceInstallerFeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.install in interface InstanceInstaller<io.dropwizard.servlets.tasks.Task>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.servlets.tasks.Task>