public class AdapterMaps
extends java.lang.Object
AdapterMap
annotations.AdapterMap
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. |
static AdapterMap |
typed(java.lang.Class<? extends IAdaptable> type)
Creates a
AdapterMap annotation with the given type . |
public static AdapterMap typed(java.lang.Class<? extends IAdaptable> type)
AdapterMap
annotation with the given type
.type
- The type of the AdapterMap
to be created.AdapterMapImpl
for the given 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.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.