public class AdapterInjectionSupport extends AbstractModule
Binder.install(Module)) to enable support for injection of adapters
into IAdaptables. The adapters that are to be injected can be
configured through respective adapter (map) bindings (see AdapterMap
). Injection is performed on all IAdaptables that are eligible for
adapter injection (see InjectAdapters).| Modifier and Type | Class and Description |
|---|---|
static class |
AdapterInjectionSupport.LoggingMode
The
AdapterInjectionSupport.LoggingMode specifies if binding-related information and
warning messages should be printed. |
| Constructor and Description |
|---|
AdapterInjectionSupport()
Constructs a new
AdapterInjectionSupport in
AdapterInjectionSupport.LoggingMode.DEVELOPMENT mode, i.e. binding-related information,
warning, and error messages will be printed. |
AdapterInjectionSupport(AdapterInjectionSupport.LoggingMode loggingMode)
Constructs a new
AdapterInjectionSupport and specifies the
AdapterInjectionSupport.LoggingMode to use. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure()
Binds an
AdaptableTypeListener (via
AbstractModule.bindListener(Matcher, TypeListener)) and ensures it gets
properly injected (AbstractModule.requestInjection(Object)). |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic AdapterInjectionSupport()
AdapterInjectionSupport in
AdapterInjectionSupport.LoggingMode.DEVELOPMENT mode, i.e. binding-related information,
warning, and error messages will be printed.public AdapterInjectionSupport(AdapterInjectionSupport.LoggingMode loggingMode)
AdapterInjectionSupport and specifies the
AdapterInjectionSupport.LoggingMode to use. If in AdapterInjectionSupport.LoggingMode.DEVELOPMENT mode,
binding-related information, warning, and error messages will be printed.
If in AdapterInjectionSupport.LoggingMode.PRODUCTION mode, only error messages will be
printed, and information and warning messages will be suppressed.loggingMode - The AdapterInjectionSupport.LoggingMode to use.protected void configure()
AdaptableTypeListener (via
AbstractModule.bindListener(Matcher, TypeListener)) and ensures it gets
properly injected (AbstractModule.requestInjection(Object)).configure in class AbstractModuleCopyright (c) 2014 itemis AG and others. All rights reserved.