Home
last modified time | relevance | path

Searched refs:getTypeLiteral (Results 1 – 25 of 42) sorted by relevance

12

/external/guice/core/test/com/google/inject/spi/
DInjectorSpiTest.java38 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/
DDaggerMethodScanner.java84 ? 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/
DAbstractBindingBuilder.java77 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()
DInjectorImpl.java146 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 …]
DAbstractBindingProcessor.java72 Class<?> rawType = key.getTypeLiteral().getRawType(); in putBinding()
130 key.getTypeLiteral().getRawType(), source, errors); in validateKey()
146 rawType = key.getTypeLiteral().getRawType(); in Processor()
DExposureBuilder.java47 key = Key.get(key.getTypeLiteral(), annotationType); in annotatedWith()
54 key = Key.get(key.getTypeLiteral(), annotation); in annotatedWith()
DRealOptionalBinder.java163 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()
DConstructorInjector.java72 context.getInjectorOptions(), dependency.getKey().getTypeLiteral().getRawType()); in construct()
81 dependency.getKey().getTypeLiteral().getRawType()); in construct()
DRealMultibinder.java335 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()
DMoreTypes.java73 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()
DProviderInternalFactory.java48 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); in circularGet()
DConstructorBindingImpl.java97 ? key.getTypeLiteral().getRawType() in create()
115 constructorInjector = InjectionPoint.forConstructorOf(key.getTypeLiteral()); in create()
DErrors.java180 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()
DMessages.java354 return key.getTypeLiteral()
358 return key.getTypeLiteral().toString();
/external/guice/core/src/com/google/inject/spi/
DProviderLookup.java118 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/
DFactoryProvider2.java234 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()
DParameter.java121 : Key.get(key.getTypeLiteral(), key.getAnnotation().annotationType()); in fixAnnotations()
/external/guice/core/test/com/google/inject/
DKeyTest.java82 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/
DSpiUtils.java815 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 …]
DOptionalBinderTest.java93 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/servlet/test/com/google/inject/servlet/
DServletPipelineRequestDispatcherTest.java100 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/grapher/src/com/google/inject/grapher/
DDefaultRootKeySetCreator.java40 if (key.getTypeLiteral().getRawType().getPackage() != Guice.class.getPackage() in getRootKeys()
DShortNameFactory.java71 TypeLiteral<?> typeLiteral = key.getTypeLiteral(); in getClassName()
/external/guice/extensions/jmx/src/com/google/inject/tools/jmx/
DManager.java57 name.append("type=").append(quote(key.getTypeLiteral().toString())); in manage()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DCheckedProviderMethod.java82 ThrowingProviderBinder.create(binder).bind(checkedProvider, key.getTypeLiteral()); in configure()

12