/external/guice/core/test/com/google/inject/spi/ |
D | InjectorSpiTest.java | 38 assertEquals(Foo.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding() 45 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding() 51 assertEquals(Baz.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding() 59 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding()
|
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/ |
D | DaggerMethodScanner.java | 84 ? Multibinder.newSetBinder(binder, key.getTypeLiteral(), annotation) in processSetBinding() 85 : Multibinder.newSetBinder(binder, key.getTypeLiteral()); in processSetBinding() 86 Key<T> newKey = Key.get(key.getTypeLiteral(), UniqueAnnotations.create()); in processSetBinding()
|
/external/guice/core/src/com/google/inject/internal/ |
D | AbstractBindingBuilder.java | 77 binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotationType))); in annotatedWithInternal() 84 return setBinding(binding.withKey(Key.get(this.binding.getKey().getTypeLiteral(), annotation))); in annotatedWithInternal() 105 return !Void.class.equals(binding.getKey().getTypeLiteral().getType()); in keyTypeIsSet()
|
D | InjectorImpl.java | 146 bindingsMultimap.put(binding.getKey().getTypeLiteral(), binding); in index() 297 return key.getTypeLiteral().getRawType().equals(Provider.class); in isProvider() 301 return key.getTypeLiteral().getRawType().equals(TypeLiteral.class); in isTypeLiteral() 306 Type providerType = key.getTypeLiteral().getType(); in getProvidedKey() 322 return key.getTypeLiteral().getRawType().equals(MembersInjector.class) in isMembersInjector() 328 Type membersInjectorType = key.getTypeLiteral().getType(); in createMembersInjectorBinding() 455 TypeLiteral<T> type = key.getTypeLiteral(); 650 membersInjectorStore.remove(binding.getKey().getTypeLiteral()); 676 Class<?> rawType = key.getTypeLiteral().getRawType(); 723 Type typeLiteralType = key.getTypeLiteral().getType(); [all …]
|
D | ExposureBuilder.java | 47 key = Key.get(key.getTypeLiteral(), annotationType); in annotatedWith() 54 key = Key.get(key.getTypeLiteral(), annotation); in annotatedWith()
|
D | AbstractBindingProcessor.java | 72 Class<?> rawType = key.getTypeLiteral().getRawType(); in putBinding() 130 key.getTypeLiteral().getRawType(), source, errors); in validateKey() 146 rawType = key.getTypeLiteral().getRawType(); in Processor()
|
D | ConstructorInjector.java | 72 context.getInjectorOptions(), dependency.getKey().getTypeLiteral().getRawType()); in construct() 81 dependency.getKey().getTypeLiteral().getRawType()); in construct()
|
D | RealOptionalBinder.java | 163 Type providerT = Types.providerOf(key.getTypeLiteral().getType()); in providerOf() 251 .bind(key.ofType(optionalOfProvider(key.getTypeLiteral()))) in configure() 261 .bind(key.ofType(optionalOfJavaxProvider(key.getTypeLiteral()))) in configure() 264 Key<Optional<T>> optionalKey = key.ofType(optionalOf(key.getTypeLiteral())); in configure() 277 TypeLiteral<?> typeLiteral = key.getTypeLiteral(); in bindJava8Optional() 647 defaultBindingKey = Key.get(key.getTypeLiteral(), new DefaultImpl(getBindingName())); in getKeyForDefaultBinding() 654 actualBindingKey = Key.get(key.getTypeLiteral(), new ActualImpl(getBindingName())); in getKeyForActualBinding()
|
D | RealMultibinder.java | 335 this.setKey = key.ofType(setOf(key.getTypeLiteral())); in BindingSelection() 336 this.elementType = key.getTypeLiteral(); in BindingSelection() 369 Dependency.get(key.ofType(Types.providerOf(key.getTypeLiteral().getType())))); in initialize() 490 return key.getTypeLiteral().equals(elementType) in keyMatches()
|
D | ProviderInternalFactory.java | 48 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); in circularGet()
|
D | MoreTypes.java | 73 return Key.get(key.getTypeLiteral(), key.getAnnotation()); in canonicalizeKey() 75 return Key.get(key.getTypeLiteral(), key.getAnnotationType()); in canonicalizeKey() 77 return Key.get(key.getTypeLiteral()); in canonicalizeKey()
|
D | ConstructorBindingImpl.java | 97 ? key.getTypeLiteral().getRawType() in create() 115 constructorInjector = InjectionPoint.forConstructorOf(key.getTypeLiteral()); in create()
|
D | Errors.java | 180 TypeLiteral<T> type = key.getTypeLiteral(); in missingImplementationWithHint() 205 String have = bindingKey.getTypeLiteral().toString(); in missingImplementationWithHint() 233 && COMMON_AMBIGUOUS_TYPES.contains(key.getTypeLiteral().getRawType())) { in missingImplementationWithHint()
|
D | Messages.java | 354 return key.getTypeLiteral() 358 return key.getTypeLiteral().toString();
|
D | InternalProviderInstanceBindingImpl.java | 152 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType();
|
/external/guice/core/src/com/google/inject/spi/ |
D | ProviderLookup.java | 118 Key<?> providerKey = getKey().ofType(Types.providerOf(getKey().getTypeLiteral().getType())); in getProvider() 124 return "Provider<" + getKey().getTypeLiteral() + ">"; in getProvider()
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | FactoryProvider2.java | 234 TypeLiteral<F> factoryType = factoryKey.getTypeLiteral(); in FactoryProvider2() 279 validateFactoryReturnType(errors, returnType.getTypeLiteral().getRawType(), factoryRawType); in FactoryProvider2() 286 Class<?> underlylingType = paramKey.getTypeLiteral().getRawType(); in FactoryProvider2() 301 implementation = returnType.getTypeLiteral(); in FactoryProvider2() 506 if (returnType.getTypeLiteral().equals(implementation)) { in findMatchingConstructorInjectionPoint() 674 .getTypeLiteral() in isInjectorOrAssistedProvider() 681 .getTypeLiteral() in isInjectorOrAssistedProvider() 696 return Key.get(key.getTypeLiteral(), DEFAULT_ANNOTATION); in assistKey() 753 final Key<?> returnKey = Key.get(returnType.getTypeLiteral(), RETURN_ANNOTATION); in getBindingFromNewInjector()
|
D | Parameter.java | 121 : Key.get(key.getTypeLiteral(), key.getAnnotation().annotationType()); in fixAnnotations()
|
/external/guice/core/test/com/google/inject/ |
D | KeyTest.java | 82 assertEquals(types[0], k.getTypeLiteral().getType()); in testTypeEquality() 83 assertFalse(types[0].equals(new Key<List<Integer>>() {}.getTypeLiteral().getType())); in testTypeEquality() 124 assertEquals(wrappers[t], primitiveKey.getTypeLiteral().getType()); in testPrimitivesAndWrappersAreEqual() 125 assertEquals(wrappers[t], wrapperKey.getTypeLiteral().getType()); in testPrimitivesAndWrappersAreEqual()
|
/external/guice/core/test/com/google/inject/internal/ |
D | SpiUtils.java | 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() 1044 keyType.ofType(RealOptionalBinder.optionalOfJavaxProvider(keyType.getTypeLiteral())); in optionalModuleTest() 1048 RealOptionalBinder.javaOptionalOfJavaxProvider(keyType.getTypeLiteral())) in optionalModuleTest() [all …]
|
D | OptionalBinderTest.java | 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()) 1339 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotation()); in testKeyHashCodesFixedAtInjectionTime() 1341 clonedKey = Key.get(bindingKey.getTypeLiteral(), bindingKey.getAnnotationType()); in testKeyHashCodesFixedAtInjectionTime() 1343 clonedKey = Key.get(bindingKey.getTypeLiteral()); in testKeyHashCodesFixedAtInjectionTime() 1371 assertEquals(listOfStrings, keyBefore.getTypeLiteral()); in testBindingKeysFixedOnReturnFromGetElements()
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | DefaultRootKeySetCreator.java | 40 if (key.getTypeLiteral().getRawType().getPackage() != Guice.class.getPackage() in getRootKeys()
|
D | ShortNameFactory.java | 71 TypeLiteral<?> typeLiteral = key.getTypeLiteral(); in getClassName()
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletPipelineRequestDispatcherTest.java | 100 expect(injector.findBindingsByType(eq(servetDefsKey.getTypeLiteral()))) in testIncludeManagedServlet() 167 expect(injector.findBindingsByType(eq(servetDefsKey.getTypeLiteral()))) in testForwardToManagedServlet() 237 expect(injector.findBindingsByType(eq(servetDefsKey.getTypeLiteral()))) in forwardToManagedServletFailureOnCommittedBuffer()
|
/external/guice/extensions/jmx/src/com/google/inject/tools/jmx/ |
D | Manager.java | 57 name.append("type=").append(quote(key.getTypeLiteral().toString())); in manage()
|