Home
last modified time | relevance | path

Searched refs:factoryType (Results 1 – 4 of 4) sorted by relevance

/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider.java174 private final TypeLiteral<F> factoryType; field in FactoryProvider
178 public static <F> Provider<F> newFactory(Class<F> factoryType, Class<?> implementationType) { in newFactory() argument
179 return newFactory(TypeLiteral.get(factoryType), TypeLiteral.get(implementationType)); in newFactory()
183 TypeLiteral<F> factoryType, TypeLiteral<?> implementationType) { in newFactory() argument
185 createMethodMapping(factoryType, implementationType); in newFactory()
188 return new FactoryProvider<F>(factoryType, implementationType, factoryMethodToConstructor); in newFactory()
198 for (Method method : factoryType.getRawType().getMethods()) { in newFactory()
200 getKey(factoryType.getReturnType(method), method, method.getAnnotations(), errors); in newFactory()
209 return new FactoryProvider2<F>(Key.get(factoryType), collector); in newFactory()
214 TypeLiteral<F> factoryType, in FactoryProvider() argument
[all …]
DFactoryProvider2.java234 TypeLiteral<F> factoryType = factoryKey.getTypeLiteral(); in FactoryProvider2() local
238 Class<F> factoryRawType = (Class<F>) (Class<?>) factoryType.getRawType(); in FactoryProvider2()
265 TypeLiteral<?> returnTypeLiteral = factoryType.getReturnType(method); in FactoryProvider2()
280 List<TypeLiteral<?>> params = factoryType.getParameterTypes(method); in FactoryProvider2()
310 scope, implementation.getRawType(), factoryType); in FactoryProvider2()
332 if (isValidForOptimizedAssistedInject(deps, implementation.getRawType(), factoryType)) { in FactoryProvider2()
469 private void validateFactoryReturnType(Errors errors, Class<?> returnType, Class<?> factoryType) { in validateFactoryReturnType() argument
470 if (Modifier.isPublic(factoryType.getModifiers()) in validateFactoryReturnType()
476 factoryType, returnType); in validateFactoryReturnType()
641 Set<Dependency<?>> dependencies, Class<?> implementation, TypeLiteral<?> factoryType) { in isValidForOptimizedAssistedInject() argument
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DKey.java279 ExecutableElement method, TypeMirror valueType, TypeElement factoryType) {
281 TypeMirror mapValueFactoryType = types.getDeclaredType(factoryType, valueType);
DAbstractComponentWriter.java637 TypeName factoryType = in implementInterfaceMethods() local
643 "%s factory = %s;", factoryType, memberSelectSnippet); in implementInterfaceMethods()