public class AdapterMaps
extends java.lang.Object
MapBinder, via which adapter (map)
bindings can be specified in a Module.| Modifier and Type | Method and Description |
|---|---|
static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> |
getAdapterMapBinder(com.google.inject.Binder binder,
java.lang.Class<? extends IAdaptable> type)
Returns a
MapBinder, which is bound to an AdapterMap
annotation of the given type, and can thus be used to specify adapter
that are to injected into IAdaptables of the respective type. |
static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> |
getAdapterMapBinder(com.google.inject.Binder binder,
java.lang.Class<? extends IAdaptable> type,
java.lang.String role)
Returns a
MapBinder, which is bound to an AdapterMap
annotation of the given type and role, and can thus be used to specify
adapter that are to injected into IAdaptables of the respective
type and role. |
public static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> getAdapterMapBinder(com.google.inject.Binder binder, java.lang.Class<? extends IAdaptable> type)
MapBinder, which is bound to an AdapterMap
annotation of the given type, and can thus be used to specify adapter
that are to injected into IAdaptables of the respective type.binder - The Binder used to create a new MapBinder.type - The type to be used as type of the AdapterMap.MapBinder used to define adapter map bindings for
the given type (and all sub-types).public static com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> getAdapterMapBinder(com.google.inject.Binder binder, java.lang.Class<? extends IAdaptable> type, java.lang.String role)
MapBinder, which is bound to an AdapterMap
annotation of the given type and role, and can thus be used to specify
adapter that are to injected into IAdaptables of the respective
type and role.binder - The Binder used to create a new MapBinder.type - The type to be used as type of the AdapterMap.role - The role of the adaptable to bind values to.MapBinder used to define adapter map bindings for
the given type (and all sub-types).Copyright (c) 2014 itemis AG and others. All rights reserved.