T - expected extension type (or Object when no super type (e.g. for annotated beans))public interface InstanceInstaller<T>
FeatureInstaller.
Used for installers which require extension instance for installation.
Instance created using injector.getInstance().
May be used to force guice bean instance creation (like eager singleton for development stage).ManagedInstaller| Modifier and Type | Method and Description |
|---|---|
void |
install(io.dropwizard.setup.Environment environment,
T instance)
Use
FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type. |
void install(io.dropwizard.setup.Environment environment,
T instance)
FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.environment - environment objectinstance - extension instance