Interface InstanceInstaller<T>

Type Parameters:
T - expected extension type (or Object when no super type (e.g. for annotated beans))
All Known Implementing Classes:
HealthCheckInstaller, JerseyFeatureInstaller, LifeCycleInstaller, ManagedInstaller, TaskInstaller, WebFilterInstaller, WebListenerInstaller, WebServletInstaller

public interface InstanceInstaller<T>
Marker interface must be used together with 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).
Since:
10.10.2014
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    install(io.dropwizard.core.setup.Environment environment, T instance)
    Use FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type.
  • Method Details