HomeSort by relevance Sort by last modified time
    Searched refs:Multibinder (Results 1 - 9 of 9) sorted by null

  /external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
MultibinderModule.java 20 import com.google.inject.multibindings.Multibinder;
23 * Module to add {@link Multibinder}-based bindings to the injector.
30 Multibinder<Person> charactersBinder = Multibinder.newSetBinder(binder(), Person.class);
  /external/guice/extensions/multibindings/test/com/google/inject/multibindings/
MultibinderTest.java 20 import static com.google.inject.multibindings.Multibinder.collectionOfJavaxProvidersOf;
106 Multibinder<String> multibinder = Multibinder.newSetBinder(binder(), String.class);
107 multibinder.addBinding().toInstance("A");
108 multibinder.addBinding().toInstance("B");
109 multibinder.addBinding().toInstance("C");
114 Multibinder<String> multibinder = Multibinder.newSetBinder(binder(), String.class)
    [all...]
SpiUtils.java 24 import static com.google.inject.multibindings.Multibinder.collectionOfJavaxProvidersOf;
25 import static com.google.inject.multibindings.Multibinder.collectionOfProvidersOf;
26 import static com.google.inject.multibindings.Multibinder.setOf;
79 * Utilities for testing the Multibinder & MapBinder extension SPI.
416 * @param results The kind of bindings contained in the multibinder.
446 MultibinderBinding<Set<T>> multibinder = local
448 assertNotNull(multibinder);
449 assertEquals(elementType, multibinder.getElementTypeLiteral());
450 assertEquals(allowDuplicates, multibinder.permitsDuplicates());
451 List<Binding<?>> elements = Lists.newArrayList(multibinder.getElements())
535 MultibinderBinding<Set<T>> multibinder = null; local
    [all...]
  /external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
DaggerMethodScanner.java 22 import com.google.inject.multibindings.Multibinder;
68 Multibinder<T> setBinder = Multibinder.newSetBinder(binder, key.getTypeLiteral());
  /external/guice/extensions/dagger-adapter/test/com/google/inject/daggeradapter/
DaggerAdapterTest.java 28 import com.google.inject.multibindings.Multibinder;
87 Multibinder<Integer> mb = Multibinder.newSetBinder(binder, Integer.class);
  /external/guice/extensions/multibindings/src/com/google/inject/multibindings/
Multibinder.java 23 import static com.google.inject.multibindings.Element.Type.MULTIBINDER;
63 * complete collection. Multibinder is intended for use in your application's
68 * Multibinder&lt;Snack&gt; multibinder
69 * = Multibinder.newSetBinder(binder(), Snack.class);
70 * multibinder.addBinding().toInstance(new Twix());
71 * multibinder.addBinding().toProvider(SnickersProvider.class);
72 * multibinder.addBinding().to(Skittles.class);
87 * to create their own {@code Multibinder<Snack>}, and to each contribute
98 * configuring the multibinder. Elements can never be removed from the set
    [all...]
MapBinder.java 20 import static com.google.inject.multibindings.Multibinder.checkConfiguration;
21 import static com.google.inject.multibindings.Multibinder.checkNotNull;
22 import static com.google.inject.multibindings.Multibinder.setOf;
49 import com.google.inject.multibindings.Multibinder.RealMultibinder;
147 Multibinder.newSetBinder(binder, entryOfProviderOf(keyType, valueType)));
168 Multibinder.newSetBinder(binder, entryOfProviderOf(keyType, valueType), annotation));
189 Multibinder.newSetBinder(binder, entryOfProviderOf(keyType, valueType), annotationType));
247 Multibinder.newSetBinder(binder,
253 Multibinder<Entry<K, Provider<V>>> entrySetBinder) {
294 * each of the map's values. It delegates to a {@link Multibinder} o
    [all...]
MultibindingsScanner.java 86 return Multibinder.newRealSetBinder(binder, key).getKeyForNewItem();
OptionalBinder.java 21 import static com.google.inject.multibindings.Multibinder.checkConfiguration;
333 // so initialize to the whole Injector (like Multibinder, and MapBinder indirectly).

Completed in 159 milliseconds