Annotation Type InjectAdapters
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface InjectAdaptersAn annotation to mark anIAdaptableimplementation 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 anIAdaptablethereby marks itself as eligible for adapter injection, all adapter (map bindings) that are bound to atype(by being qualified with a respectiveAdapterMapannotation), which is either the same or a super-type or super-interface of theIAdaptablewill be evaluated, and respective adapters will be injected.In order to enable adapter injection,
AdapterInjectionSupporthas to be installed by one of theModules used by theInjector.InjectAdaptersannotations should not be mixed withInjectannotations.