Home
last modified time | relevance | path

Searched refs:OptionalBinder (Results 1 – 5 of 5) sorted by relevance

/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DOptionalBinderTest.java46 import com.google.inject.multibindings.OptionalBinder.Actual;
47 import com.google.inject.multibindings.OptionalBinder.Default;
97 OptionalBinder.javaOptionalOf(stringKey.getTypeLiteral()) : null;
101 OptionalBinder.javaOptionalOfProvider(stringKey.getTypeLiteral()) : null;
105 OptionalBinder.javaOptionalOfJavaxProvider(stringKey.getTypeLiteral()) : null;
110 OptionalBinder.javaOptionalOf(intKey.getTypeLiteral()) : null;
114 OptionalBinder.javaOptionalOfProvider(intKey.getTypeLiteral()) : null;
118 OptionalBinder.javaOptionalOfJavaxProvider(intKey.getTypeLiteral()) : null;
125 OptionalBinder.newOptionalBinder(binder(), String.class); in testTypeNotBoundByDefault()
149 OptionalBinder.newOptionalBinder(binder(), String.class); in testOptionalIsAbsentByDefault()
[all …]
DSpiUtils.java27 import static com.google.inject.multibindings.OptionalBinder.javaOptionalOfJavaxProvider;
28 import static com.google.inject.multibindings.OptionalBinder.javaOptionalOfProvider;
29 import static com.google.inject.multibindings.OptionalBinder.optionalOfJavaxProvider;
30 import static com.google.inject.multibindings.OptionalBinder.optionalOfProvider;
63 import com.google.inject.multibindings.OptionalBinder.Source;
662 keyType.ofType(OptionalBinder.optionalOf(keyType.getTypeLiteral())); in optionalInjectorTest()
664 keyType.ofType(OptionalBinder.javaOptionalOf(keyType.getTypeLiteral())) : null; in optionalInjectorTest()
824 keyType.ofType(OptionalBinder.optionalOf(keyType.getTypeLiteral())); in optionalModuleTest()
826 keyType.ofType(OptionalBinder.javaOptionalOf(keyType.getTypeLiteral())) : null; in optionalModuleTest()
971 return b.getKey().getAnnotation() instanceof OptionalBinder.Actual; in isSourceEntry()
[all …]
DMultibinderTest.java1072 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1074 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct()
1094 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinctInSpi()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DOptionalBinder.java167 public abstract class OptionalBinder<T> { class
192 private OptionalBinder() {} in OptionalBinder() method in OptionalBinder
194 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Class<T> type) { in newOptionalBinder()
198 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, TypeLiteral<T> type) { in newOptionalBinder()
202 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Key<T> type) { in newOptionalBinder()
207 binder = binder.skipSources(OptionalBinder.class, RealOptionalBinder.class); in newRealOptionalBinder()
296 static final class RealOptionalBinder<T> extends OptionalBinder<T> implements Module {
DMultibindingsScanner.java106 return OptionalBinder.newRealOptionalBinder(binder, key).getKeyForDefaultBinding();
108 return OptionalBinder.newRealOptionalBinder(binder, key).getKeyForActualBinding();