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
-
Method Details
-
install
UseFeatureUtils.getInstanceClass(instance)to overcome proxies and get correct type.Full
Injectorcould be obtained withInjectorLookup.getInjector(Environment).Shared state could be obtained with
SharedConfigurationState.get(Environment)- Parameters:
environment- environment objectinstance- extension instance
-