Home
last modified time | relevance | path

Searched refs:typeLiteral (Results 1 – 25 of 28) sorted by relevance

12

/external/guice/core/src/com/google/inject/
DKey.java59 private final TypeLiteral<T> typeLiteral; field in Key
78 this.typeLiteral = MoreTypes.canonicalizeForKey( in Key()
100 this.typeLiteral = MoreTypes.canonicalizeForKey( in Key()
120 this.typeLiteral = MoreTypes.canonicalizeForKey( in Key()
132 this.typeLiteral = MoreTypes.canonicalizeForKey((TypeLiteral<T>) TypeLiteral.get(type)); in Key()
138 private Key(TypeLiteral<T> typeLiteral, AnnotationStrategy annotationStrategy) { in Key() argument
140 this.typeLiteral = MoreTypes.canonicalizeForKey(typeLiteral); in Key()
149 return typeLiteral.hashCode() * 31 + annotationStrategy.hashCode(); in computeHashCode()
160 return "Key[type=" + typeLiteral + ", annotation=" + annotationStrategy + "]"; in createToStringSupplier()
169 return typeLiteral;
[all …]
DBinder.java244 <T> AnnotatedBindingBuilder<T> bind(TypeLiteral<T> typeLiteral); in bind() argument
358 <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral); in getMembersInjector() argument
DAbstractModule.java100 protected <T> AnnotatedBindingBuilder<T> bind(TypeLiteral<T> typeLiteral) { in bind() argument
101 return binder().bind(typeLiteral); in bind()
DPrivateModule.java162 protected final <T> AnnotatedBindingBuilder<T> bind(TypeLiteral<T> typeLiteral) { in bind() argument
163 return binder().bind(typeLiteral); in bind()
DInjector.java82 <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral); in getMembersInjector() argument
/external/guice/core/src/com/google/inject/internal/
DMembersInjectorImpl.java34 private final TypeLiteral<T> typeLiteral; field in MembersInjectorImpl
43 MembersInjectorImpl(InjectorImpl injector, TypeLiteral<T> typeLiteral, in MembersInjectorImpl() argument
46 this.typeLiteral = typeLiteral; in MembersInjectorImpl()
60 Errors errors = new Errors(typeLiteral); in injectMembers()
62 injectAndNotify(instance, errors, null, null, typeLiteral, false); in injectMembers()
121 errors.errorNotifyingInjectionListener(injectionListener, typeLiteral, e); in notifyListeners()
142 errors.errorInUserInjector(userMembersInjector, typeLiteral, e); in injectMembers()
149 return "MembersInjector<" + typeLiteral + ">"; in toString()
DTypeConverterBindingProcessor.java80 public boolean matches(TypeLiteral<?> typeLiteral) { in prepareBuiltInConverters()
81 return typeLiteral.getRawType() == Class.class; in prepareBuiltInConverters()
142 public boolean matches(TypeLiteral<?> typeLiteral) { in convertToClasses()
143 Type type = typeLiteral.getType(); in convertToClasses()
DMoreTypes.java96 public static <T> TypeLiteral<T> canonicalizeForKey(TypeLiteral<T> typeLiteral) { in canonicalizeForKey() argument
97 Type type = typeLiteral.getType(); in canonicalizeForKey()
99 Errors errors = new Errors().keyNotFullySpecified(typeLiteral); in canonicalizeForKey()
103 if (typeLiteral.getRawType() == javax.inject.Provider.class) { in canonicalizeForKey()
115 TypeLiteral<T> wrappedPrimitives = (TypeLiteral<T>) PRIMITIVE_TO_WRAPPER.get(typeLiteral); in canonicalizeForKey()
121 if (typeLiteral.getClass() == TypeLiteral.class) { in canonicalizeForKey()
122 return typeLiteral; in canonicalizeForKey()
128 TypeLiteral<T> recreated = (TypeLiteral<T>) TypeLiteral.get(typeLiteral.getType()); in canonicalizeForKey()
DProviderMethodsModule.java70 private final TypeLiteral<?> typeLiteral; field in ProviderMethodsModule
77 this.typeLiteral = TypeLiteral.get(this.delegate.getClass()); in ProviderMethodsModule()
213 List<TypeLiteral<?>> resolvedParameterTypes = typeLiteral.getParameterTypes(method); in Signature()
255 InjectionPoint point = InjectionPoint.forMethod(method, typeLiteral); in createProviderMethod()
263 TypeLiteral<T> returnType = (TypeLiteral<T>) typeLiteral.getReturnType(method); in createProviderMethod()
DEncounterImpl.java136 public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral) { in getMembersInjector() argument
138 return lookups.getMembersInjector(typeLiteral); in getMembersInjector()
DInternalInjectorCreator.java290 public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral) { in getMembersInjector() argument
DInjectorImpl.java987 public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral) {
988 Errors errors = new Errors(typeLiteral);
990 return membersInjectorStore.get(typeLiteral, errors);
DErrors.java395 public Errors keyNotFullySpecified(TypeLiteral<?> typeLiteral) { in keyNotFullySpecified() argument
396 return addMessage("%s cannot be used as a key; It is not fully specified.", typeLiteral); in keyNotFullySpecified()
/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java60 TypeLiteral<?> typeLiteral = TypeLiteral.get(getClass()); in testFieldInjectionPoint() local
63 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, fooField, false); in testFieldInjectionPoint()
67 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, fooField, false)); in testFieldInjectionPoint()
79 getOnlyElement(new InjectionPoint(typeLiteral, fooField, false).getDependencies())); in testFieldInjectionPoint()
83 TypeLiteral<?> typeLiteral = TypeLiteral.get(getClass()); in testMethodInjectionPoint() local
86 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, barMethod, false); in testMethodInjectionPoint()
90 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, barMethod, false)); in testMethodInjectionPoint()
102 getOnlyElement(new InjectionPoint(typeLiteral, barMethod, false).getDependencies())); in testMethodInjectionPoint()
107 TypeLiteral<?> typeLiteral = TypeLiteral.get(Constructable.class); in testConstructorInjectionPoint() local
110 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, constructor); in testConstructorInjectionPoint()
[all …]
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DCheckedProviderMethodsModule.java51 private final TypeLiteral<?> typeLiteral; field in CheckedProviderMethodsModule
55 this.typeLiteral = TypeLiteral.get(this.delegate.getClass()); in CheckedProviderMethodsModule()
99 List<TypeLiteral<?>> parameterTypes = typeLiteral.getParameterTypes(method); in createProviderMethod()
116 TypeLiteral<T> returnType = (TypeLiteral<T>) typeLiteral.getReturnType(method); in createProviderMethod()
117 List<TypeLiteral<?>> exceptionTypes = typeLiteral.getExceptionTypes(method); in createProviderMethod()
DThrowingProviderBinder.java136 bind(Class<P> interfaceType, TypeLiteral<T> typeLiteral) { in bind() argument
137 return new SecondaryBinder<P, T>(interfaceType, typeLiteral.getType()); in bind()
499 TypeLiteral<P> typeLiteral;
503 typeLiteral = (TypeLiteral<P>) TypeLiteral.get(type);
505 typeLiteral = TypeLiteral.get(interfaceType);
509 return Key.get(typeLiteral, annotation);
512 return Key.get(typeLiteral, annotationType);
515 return Key.get(typeLiteral);
DCheckedProvideUtils.java43 TypeLiteral<? extends T> typeLiteral, Binder binder) { in findThrowingConstructor() argument
45 Class<?> rawType = typeLiteral.getRawType(); in findThrowingConstructor()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DIndexer.java60 final TypeLiteral<?> typeLiteral; field in Indexer.IndexedBinding
69 this.typeLiteral = binding.getKey().getTypeLiteral(); in IndexedBinding()
82 && typeLiteral.equals(o.typeLiteral) in equals()
89 return Objects.hashCode(type, scope, typeLiteral, annotationType, annotationName, in hashCode()
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DShortNameFactory.java70 TypeLiteral<?> typeLiteral = key.getTypeLiteral(); in getClassName() local
71 return stripPackages(typeLiteral.toString()); in getClassName()
/external/guice/core/src/com/google/inject/spi/
DElements.java251 public <T> MembersInjector<T> getMembersInjector(final TypeLiteral<T> typeLiteral) { in getMembersInjector() argument
253 MoreTypes.canonicalizeForKey(typeLiteral)); in getMembersInjector()
380 public <T> AnnotatedBindingBuilder<T> bind(TypeLiteral<T> typeLiteral) { in bind() argument
381 return bind(Key.get(typeLiteral)); in bind()
DTypeEncounter.java80 <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral); in getMembersInjector() argument
/external/guice/core/test/com/google/inject/
DKeyTest.java200 TypeLiteral<Integer> typeLiteral = KeyTest.createTypeLiteral(); in testCannotGetKeyWithUnspecifiedTypeVariables() local
202 Key.get(typeLiteral); in testCannotGetKeyWithUnspecifiedTypeVariables()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java440 private boolean isTypeNotSpecified(TypeLiteral<?> typeLiteral, ConfigurationException ce) { in isTypeNotSpecified() argument
444 new Errors().keyNotFullySpecified(typeLiteral).getMessages()); in isTypeNotSpecified()
/external/testng/lib-supplied/
Dguice-2.0.jarMETA-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...
/external/guice/extensions/struts2/lib/
Dcore-3.1.1.jarMETA-INF/ org/ org/eclipse/ org/eclipse/jdt/ org/eclipse ...

12