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

12

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

Completed in 238 milliseconds

12