Searched refs:RealOptionalBinder (Results 1 – 5 of 5) sorted by relevance
19 import static com.google.inject.internal.RealOptionalBinder.newRealOptionalBinder;26 import com.google.inject.internal.RealOptionalBinder;157 private final RealOptionalBinder<T> delegate;159 private OptionalBinder(RealOptionalBinder<T> delegate) { in OptionalBinder()
815 keyType.ofType(RealOptionalBinder.optionalOf(keyType.getTypeLiteral())); in optionalInjectorTest()818 ? keyType.ofType(RealOptionalBinder.javaOptionalOf(keyType.getTypeLiteral())) in optionalInjectorTest()898 keyType.ofType(RealOptionalBinder.optionalOfJavaxProvider(keyType.getTypeLiteral())); in optionalInjectorTest()902 RealOptionalBinder.javaOptionalOfJavaxProvider(keyType.getTypeLiteral())) in optionalInjectorTest()905 keyType.ofType(RealOptionalBinder.optionalOfProvider(keyType.getTypeLiteral())); in optionalInjectorTest()908 ? keyType.ofType(RealOptionalBinder.javaOptionalOfProvider(keyType.getTypeLiteral())) in optionalInjectorTest()1005 keyType.ofType(RealOptionalBinder.optionalOf(keyType.getTypeLiteral())); in optionalModuleTest()1008 ? keyType.ofType(RealOptionalBinder.javaOptionalOf(keyType.getTypeLiteral())) in optionalModuleTest()1029 if (isSourceEntry(binding, RealOptionalBinder.Source.DEFAULT)) { in optionalModuleTest()1031 } else if (isSourceEntry(binding, RealOptionalBinder.Source.ACTUAL)) { in optionalModuleTest()[all …]
93 HAS_JAVA_OPTIONAL ? RealOptionalBinder.javaOptionalOf(stringKey.getTypeLiteral()) : null;98 ? RealOptionalBinder.javaOptionalOfProvider(stringKey.getTypeLiteral())104 ? RealOptionalBinder.javaOptionalOfJavaxProvider(stringKey.getTypeLiteral())110 HAS_JAVA_OPTIONAL ? RealOptionalBinder.javaOptionalOf(intKey.getTypeLiteral()) : null;114 HAS_JAVA_OPTIONAL ? RealOptionalBinder.javaOptionalOfProvider(intKey.getTypeLiteral()) : null;119 ? RealOptionalBinder.javaOptionalOfJavaxProvider(intKey.getTypeLiteral())340 return Key.get(RealOptionalBinder.optionalOf(TypeLiteral.get(type))); in optionalKey()642 + RealOptionalBinder.Default.class.getName() in testDifferentBindingsFail_defaults()667 + RealOptionalBinder.Actual.class.getName() in testDifferentBindingsFail_actual()694 + RealOptionalBinder.Default.class.getName() in testDifferentBindingsFail_both()[all …]
59 public final class RealOptionalBinder<T> implements Module { class60 public static <T> RealOptionalBinder<T> newRealOptionalBinder(Binder binder, Key<T> type) { in newRealOptionalBinder()61 binder = binder.skipSources(RealOptionalBinder.class); in newRealOptionalBinder()62 RealOptionalBinder<T> optionalBinder = new RealOptionalBinder<>(binder, type); in newRealOptionalBinder()187 private RealOptionalBinder(Binder binder, Key<T> typeKey) { in RealOptionalBinder() method in RealOptionalBinder738 return o instanceof RealOptionalBinder in equals()739 && ((RealOptionalBinder<?>) o).bindingSelection.equals(bindingSelection); in equals()
92 return RealOptionalBinder.newRealOptionalBinder(binder, key).getKeyForDefaultBinding(); in prepareMethod()94 return RealOptionalBinder.newRealOptionalBinder(binder, key).getKeyForActualBinding(); in prepareMethod()