public interface BindingInstaller
FeatureInstaller.
Used for installers which requires custom bindings for extension.
Note: binder.install(type) is not called by default fo binding installer, assuming installer will
specify proper binding itself.
If extension is annotated with LazyBinding boolean hint is passed and installer must decide
what to do with it (preferably support or fail, not ignore).
PluginInstaller| Modifier and Type | Method and Description |
|---|---|
<T> void |
install(com.google.inject.Binder binder,
java.lang.Class<? extends T> type,
boolean lazy)
Called to apply custom binding for installed feature.
|
<T> void install(com.google.inject.Binder binder,
java.lang.Class<? extends T> type,
boolean lazy)
binder.install(type) by default, so
implement it only if some custom binding required.T - plugin type (used just to define strict hierarchy and simplify binding)binder - guice bindertype - extension classlazy - true if extension is annotated with @LazyBinding