Home
last modified time | relevance | path

Searched refs:bindingSelection (Results 1 – 3 of 3) sorted by relevance

/external/guice/core/src/com/google/inject/internal/
DRealOptionalBinder.java184 private final BindingSelection<T> bindingSelection; field in RealOptionalBinder
188 this.bindingSelection = new BindingSelection<>(typeKey); in RealOptionalBinder()
198 .bind(bindingSelection.getDirectKey()) in addDirectTypeBinding()
199 .toProvider(new RealDirectTypeProvider<T>(bindingSelection)); in addDirectTypeBinding()
209 bindingSelection.checkNotInitialized(); in getKeyForDefaultBinding()
211 return bindingSelection.getKeyForDefaultBinding(); in getKeyForDefaultBinding()
225 bindingSelection.checkNotInitialized(); in getKeyForActualBinding()
227 return bindingSelection.getKeyForActualBinding(); in getKeyForActualBinding()
236 bindingSelection.checkNotInitialized(); in configure()
237 Key<T> key = bindingSelection.getDirectKey(); in configure()
[all …]
DRealMultibinder.java84 private final BindingSelection<T> bindingSelection; field in RealMultibinder
89 this.bindingSelection = new BindingSelection<>(key); in RealMultibinder()
94 checkConfiguration(!bindingSelection.isInitialized(), "Multibinder was already initialized"); in configure()
96 .bind(bindingSelection.getSetKey()) in configure()
97 .toProvider(new RealMultibinderProvider<T>(bindingSelection)); in configure()
99 new RealMultibinderCollectionOfProvidersProvider<T>(bindingSelection); in configure()
101 .bind(bindingSelection.getCollectionOfProvidersKey()) in configure()
110 binder.bind(bindingSelection.getCollectionOfJavaxProvidersKey()).toProvider(javaxProvider); in configure()
114 binder.install(new PermitDuplicatesModule(bindingSelection.getPermitDuplicatesKey())); in permitDuplicates()
119 checkConfiguration(!bindingSelection.isInitialized(), "Multibinder was already initialized"); in getKeyForNewItem()
[all …]
DRealMapBinder.java249 private final BindingSelection<K, V> bindingSelection; field in RealMapBinder
260 this.bindingSelection = new BindingSelection<>(keyType, valueType, mapKey, entrySetBinder); in RealMapBinder()
266 checkConfiguration(!bindingSelection.isInitialized(), "MapBinder was already initialized"); in permitDuplicates()
268 binder.install(new MultimapBinder<K, V>(bindingSelection)); in permitDuplicates()
274 checkConfiguration(!bindingSelection.isInitialized(), "MapBinder was already initialized"); in getKeyForNewValue()
276 bindingSelection.getEntrySetBinder(); in getKeyForNewValue()
280 bindingSelection.getValueType(), in getKeyForNewValue()
282 entrySetBinder.getSetName(), MAPBINDER, bindingSelection.getKeyType().toString())); in getKeyForNewValue()
297 checkConfiguration(!bindingSelection.isInitialized(), "MapBinder was already initialized"); in configure()
301 new RealProviderMapProvider<K, V>(bindingSelection); in configure()
[all …]