Searched refs:OptionalBinder (Results 1 – 4 of 4) sorted by relevance
/external/guice/core/src/com/google/inject/multibindings/ |
D | OptionalBinder.java | 139 public class OptionalBinder<T> { class 142 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Class<T> type) { in newOptionalBinder() 143 return new OptionalBinder<T>( in newOptionalBinder() 144 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder() 147 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, TypeLiteral<T> type) { in newOptionalBinder() 148 return new OptionalBinder<T>( in newOptionalBinder() 149 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder() 152 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Key<T> type) { in newOptionalBinder() 153 return new OptionalBinder<T>( in newOptionalBinder() 154 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), type)); in newOptionalBinder() [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | OptionalBinderTest.java | 47 import com.google.inject.multibindings.OptionalBinder; 129 OptionalBinder.newOptionalBinder(binder(), String.class); in testTypeNotBoundByDefault() 156 OptionalBinder.newOptionalBinder(binder(), String.class); in testOptionalIsAbsentByDefault() 190 OptionalBinder.newOptionalBinder(binder(), String.class); in testUsesUserBoundValue() 232 OptionalBinder.newOptionalBinder(binder(), String.class); in testUsesUserBoundValueNullProvidersMakeAbsent() 286 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding() 302 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding() 331 OptionalBinder.newOptionalBinder(binder(), JitBinding.class); in testOptionalBinderDependsOnJitBinding() 348 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSetDefault() 389 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("a"); in testSetBinding() [all …]
|
D | MultibinderTest.java | 55 import com.google.inject.multibindings.OptionalBinder; 1324 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct() 1327 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinct() 1351 OptionalBinder.newOptionalBinder(binder(), String.class) in testSetAndMapValueAreDistinctInSpi()
|
/external/guice/core/test/com/google/inject/ |
D | NullableInjectionPointTest.java | 7 import com.google.inject.multibindings.OptionalBinder; 199 OptionalBinder.newOptionalBinder(binder(), Foo.class);
|