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 withFeatureInstaller
. Used for installers which require extension instance for installation. Instance created usinginjector.getInstance()
. May be used to force guice bean instance creation (like eager singleton for development stage).- Since:
- 10.10.2014
- See Also:
ManagedInstaller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
install(io.dropwizard.core.setup.Environment environment, T instance)
UseFeatureUtils.getInstanceClass(instance)
to overcome proxies and get correct type.
-
-
-
Method Detail
-
install
void install(io.dropwizard.core.setup.Environment environment, T instance)
UseFeatureUtils.getInstanceClass(instance)
to overcome proxies and get correct type.Full
Injector
could be obtained withInjectorLookup.getInjector(Environment)
.Shared state could be obtained with
SharedConfigurationState.get(Environment)
- Parameters:
environment
- environment objectinstance
- extension instance
-
-