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 IAdaptable s of the respective type. |
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 IAdaptable
s 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).Copyright (c) 2014 itemis AG and others. All rights reserved.