See: Description
| Class | Description |
|---|---|
| AdaptableScope<A extends IAdaptable> |
A Guice
Scope that is bound to an IAdaptable-compliant type
and has to be scoped to a respective instance of that type. |
| AdaptableScopes |
A utility class to support adaptable-based scoping.
|
| AdaptableTypeListener |
A specific
TypeListener to support adapter injection. |
| AdapterInjectionSupport |
A configuration module that can be installed (via
Binder.install(Module)) to enable support for injection of adapters
into IAdaptables. |
| AdapterInjector |
A specific
MembersInjector that supports injection of adapters into
an IAdaptable implementation class'
IAdaptable.setAdapter(TypeToken, Object, String) method, that is
marked as being eligible for adapter injection (see InjectAdapters). |
| AdapterMaps |
A utility class to obtain a
MapBinder, via which adapter (map)
bindings can be specified in a Module. |
| Annotation Type | Description |
|---|---|
| AdapterMap |
A
BindingAnnotation that can be used to qualify adapter (map)
bindings, i.e. provide type information related to valid IAdaptable
injection points. |
| InjectAdapters |
An annotation to mark an
IAdaptable implementation class'
IAdaptable.setAdapter(TypeToken, Object, String) method as an
injection point for adapter injection:
@InjectAdapters
public <T> void setAdapter(TypeToken<T> adapterType, T adapter, String role) {
...
}
If an IAdaptable thereby marks itself as eligible for adapter
injection, all adapter (map bindings) that are bound to a
type (by being qualified with a respective
AdapterMap annotation), which is either the same or a super-type or
super-interface of the IAdaptable will be evaluated, and respective
adapters will be injected. |
Copyright (c) 2014 itemis AG and others. All rights reserved.