Searched refs:OptionalBinder (Results 1 – 5 of 5) sorted by relevance
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | OptionalBinderTest.java | 46 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 …]
|
D | SpiUtils.java | 27 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 …]
|
D | MultibinderTest.java | 1072 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/ |
D | OptionalBinder.java | 167 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 {
|
D | MultibindingsScanner.java | 106 return OptionalBinder.newRealOptionalBinder(binder, key).getKeyForDefaultBinding(); 108 return OptionalBinder.newRealOptionalBinder(binder, key).getKeyForActualBinding();
|