/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
D | CheckedProviders.java | 103 Class<P> providerType, Optional<T> value, InvocationHandler handler) { in generateProvider() argument 104 checkInterface(providerType, getClassOptional(value)); in generateProvider() 107 providerType.getClassLoader(), new Class<?>[] {providerType}, handler); in generateProvider() 114 TypeLiteral<P> providerType, Optional<T> value, InvocationHandler handler) { in generateProvider() argument 117 Class<P> providerRaw = (Class) providerType.getRawType(); in generateProvider() 138 TypeLiteral<P> providerType, @Nullable T instance) { in of() argument 140 providerType, Optional.fromNullable(instance), new ReturningHandler<T>(instance)); in of() 151 Class<P> providerType, @Nullable T instance) { in of() argument 152 return of(TypeLiteral.get(providerType), instance); in of() 169 TypeLiteral<P> providerType, Class<? extends Throwable> throwable) { in throwing() argument [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvidedByInternalFactory.java | 33 private final Class<? extends Provider<?>> providerType; field in ProvidedByInternalFactory 40 Class<? extends Provider<?>> providerType, in ProvidedByInternalFactory() argument 44 this.providerType = providerType; in ProvidedByInternalFactory() 89 throw InternalProvisionException.subtypeNotProvided(providerType, rawType); in provision()
|
D | BindingBuilder.java | 133 Class<? extends javax.inject.Provider<? extends T>> providerType) { in toProvider() argument 134 return toProvider(Key.get(providerType)); in toProvider() 139 TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType) { in toProvider() argument 140 return toProvider(Key.get(providerType)); in toProvider()
|
D | InternalProvisionException.java | 101 Class<? extends javax.inject.Provider<?>> providerType, Class<?> type) { in subtypeNotProvided() argument 102 return create("%s doesn't provide instances of %s.", providerType, type); in subtypeNotProvided()
|
D | RealMultibinder.java | 70 Type providerType = Types.providerOf(elementType.getType()); in collectionOfProvidersOf() local 71 Type type = Types.collectionOf(providerType); in collectionOfProvidersOf() 78 Type providerType = in collectionOfJavaxProvidersOf() local 80 Type type = Types.collectionOf(providerType); in collectionOfJavaxProvidersOf()
|
D | InjectorImpl.java | 306 Type providerType = key.getTypeLiteral().getType(); in getProvidedKey() local 309 if (!(providerType instanceof ParameterizedType)) { in getProvidedKey() 313 Type entryType = ((ParameterizedType) providerType).getActualTypeArguments()[0]; in getProvidedKey() 756 Class<? extends javax.inject.Provider<?>> providerType = providedBy.value(); 759 if (providerType == rawType) { 765 Key<? extends Provider<T>> providerKey = (Key<? extends Provider<T>>) Key.get(providerType); 767 new ProvidedByInternalFactory<T>(rawType, providerType, providerKey);
|
/external/guice/core/src/com/google/inject/binder/ |
D | LinkedBindingBuilder.java | 63 ScopedBindingBuilder toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType); in toProvider() argument 67 TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType); in toProvider() argument
|
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
D | BoundFieldModule.java | 201 Type providerType = type.getType(); in getNaturalFieldType() local 202 if (providerType instanceof Class) { in getNaturalFieldType() 205 Preconditions.checkState(providerType instanceof ParameterizedType); in getNaturalFieldType() 206 Type[] providerTypeArguments = ((ParameterizedType) providerType).getActualTypeArguments(); in getNaturalFieldType()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 122 final TypeLiteral<Provider<T>> providerType() { in providerType() method in TypeLiteral
|
D | Key.java | 174 return ofType(typeLiteral.providerType()); in providerKey()
|