/external/guice/core/test/com/google/inject/ |
ProviderInjectionTest.java | 59 new Provider<Bar>() { 83 * In this testcase, we verify that a provider for List.class is injected before it is used. 94 new Provider<String>() { 111 new Provider<List>() { 150 // provider injection 154 new Provider<Count>() { 215 @Inject Provider<Bar> barProvider; 216 @Inject Provider<SampleSingleton> singletonProvider;
|
CircularDependencyTest.java | 84 new Provider<A>() { 85 @Inject Provider<B> bp; 95 new Provider<B>() { 96 @Inject Provider<A> ap; 167 static class AP implements Provider<A> { 168 @Inject Provider<B> bp; 177 static class AutoAP implements Provider<A> { 178 @Inject Provider<B> bp; 219 static class BP implements Provider<B> { 220 Provider<A> ap [all...] |
/external/guice/core/src/com/google/inject/util/ |
Types.java | 19 import com.google.inject.Provider; 130 * Returns a type modelling a {@link Provider} that provides elements of type {@code elementType}. 135 return newParameterizedType(Provider.class, providedType); 139 * Returns a type modelling a {@link javax.inject.Provider} that provides elements of type {@code 145 return Types.newParameterizedType(javax.inject.Provider.class, type);
|
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/ |
EntityManagerProvisionTest.java | 22 import com.google.inject.Provider; 98 private final Provider<EntityManager> em; 102 public JpaDao(Provider<EntityManager> em) {
|
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
BoundFieldModule.java | 24 import com.google.inject.Provider; 59 * <li>If the field is of type {@link Provider}, the field's value will be bound as a {@link 60 * Provider} using {@link LinkedBindingBuilder#toProvider} to the provider's parameterized 61 * type. For example, {@code Provider<Integer>} binds to {@link Integer}. Attempting to bind a 62 * non-parameterized {@link Provider} without a {@link Bind#to} clause is an error. 73 * // bind(String.class).toProvider(new Provider() { public String get() { return userName; }}); 85 * {@literal @}Bind private Provider{@code <Object>} myProvider = getProvider(); 152 * Number}, and {@code @Bind(to = Object.class) Provider<Number> one = new Integer(1);} will be 179 "Non parameterized Provider fields must have an explicit [all...] |
/external/dagger2/core/src/main/java/dagger/ |
Component.java | 22 import javax.inject.Provider; 43 * {@linkplain Provider provision} or {@linkplain MembersInjector members-injection} contracts. 57 * <p>Provision methods, like typical {@link Inject injection} sites, may use {@link Provider} or 58 * {@link Lazy} to more explicitly control provision requests. A {@link Provider} allows the user 59 * of the component to request provision any number of times by calling {@link Provider#get}. A 64 * {@literal Provider<SomeType>} getSomeTypeProvider(); 202 * on the dependency is bound as a provider. Note that <em>only</em> the bindings exposed as
|
/external/grpc-grpc-java/grpclb/src/main/java/io/grpc/grpclb/ |
GrpclbLoadBalancerFactory.java | 54 new ExponentialBackoffPolicy.Provider());
|
/external/guice/core/src/com/google/inject/internal/ |
RealMultibinder.java | 19 import com.google.inject.Provider; 47 * <p>As a Provider, this constructs the set instances. 49 * <p>We use a subclass to hide 'implements Module, Provider' from the public API. 68 static <T> TypeLiteral<Collection<Provider<T>>> collectionOfProvidersOf( 72 return (TypeLiteral<Collection<Provider<T>>>) TypeLiteral.get(type); 76 static <T> TypeLiteral<Collection<javax.inject.Provider<T>>> collectionOfJavaxProvidersOf( 79 Types.newParameterizedType(javax.inject.Provider.class, elementType.getType()); 81 return (TypeLiteral<Collection<javax.inject.Provider<T>>>) TypeLiteral.get(type); 98 Provider<Collection<Provider<T>>> collectionOfProvidersProvider [all...] |
DeferredLookups.java | 22 import com.google.inject.Provider; 50 public <T> Provider<T> getProvider(Key<T> key) {
|
BindingBuilder.java | 25 import com.google.inject.Provider; 106 public BindingBuilder<T> toProvider(Provider<? extends T> provider) { 107 return toProvider((javax.inject.Provider<T>) provider); 111 public BindingBuilder<T> toProvider(javax.inject.Provider<? extends T> provider) { 112 checkNotNull(provider, "provider"); 118 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(provider.getClass()) [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
AlgorithmParametersTestAES.java | 23 import java.security.Provider; 52 for (Provider p : Security.getProviders()) { 57 // This provider doesn't support AES, ignore 62 assertEquals("Provider: " + p.getName(), 67 assertTrue("Provider: " + p.getName(),
|
AlgorithmParametersTestDES.java | 23 import java.security.Provider; 50 for (Provider p : Security.getProviders()) { 55 // This provider doesn't support DES, ignore 60 assertEquals("Provider: " + p.getName(), 65 assertTrue("Provider: " + p.getName(),
|
AlgorithmParametersTestDESede.java | 23 import java.security.Provider; 50 for (Provider p : Security.getProviders()) { 55 // This provider doesn't support DESede, ignore 60 assertEquals("Provider: " + p.getName(), 65 assertTrue("Provider: " + p.getName(),
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
AlgorithmParametersTestAES.java | 24 import java.security.Provider; 56 for (Provider p : Security.getProviders()) { 61 // This provider doesn't support AES, ignore 66 assertEquals("Provider: " + p.getName(), 71 assertTrue("Provider: " + p.getName(),
|
AlgorithmParametersTestDES.java | 24 import java.security.Provider; 54 for (Provider p : Security.getProviders()) { 59 // This provider doesn't support DES, ignore 64 assertEquals("Provider: " + p.getName(), 69 assertTrue("Provider: " + p.getName(),
|
AlgorithmParametersTestDESede.java | 24 import java.security.Provider; 54 for (Provider p : Security.getProviders()) { 59 // This provider doesn't support DESede, ignore 64 assertEquals("Provider: " + p.getName(), 69 assertTrue("Provider: " + p.getName(),
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
MultibindingComponent.java | 24 import javax.inject.Provider; 37 Map<String, Provider<String>> mapOfProviders();
|
/external/google-fruit/include/fruit/ |
provider.h | 28 * A Provider is a class that allows access to instances of the types used as parameters of the Provider template. 29 * It's possible to inject a Provider<MyClass> instead of MyClass itself, and this allows lazy injection. 37 * INJECT(S(Foo* foo, Provider<Bar> barProvider)) { 47 * It's also possible to store the Provider object in a field, and create the Bar instance when the first method that 52 * Provider<Bar> barProvider; 55 * INJECT(S(Provider<Bar> barProvider)) 70 * Note that you can inject a Provider<Foo> whenever you could have injected a Foo. 74 class Provider { 92 * On a Provider<Foo>, you can call [all...] |
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
ExponentialBackoffPolicy.java | 32 public static final class Provider implements BackoffPolicy.Provider {
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
GrpcSslContexts.java | 37 import java.security.Provider; 104 method = conscryptClass.getMethod("isConscrypt", Provider.class); 180 public static SslContextBuilder configure(SslContextBuilder builder, SslProvider provider) { 181 switch (provider) { 184 Provider jdkProvider = findJdkProvider(); 205 throw new IllegalArgumentException("Unsupported provider: " + provider); 214 public static SslContextBuilder configure(SslContextBuilder builder, Provider jdkProvider) { 231 throw new IllegalArgumentException("Unknown provider; can't configure: " + jdkProvider); 241 * Returns OpenSSL if available, otherwise returns the JDK provider 248 Provider provider = findJdkProvider(); local [all...] |
/external/guice/core/src/com/google/inject/ |
Injector.java | 35 * <li>A {@code Provider<T>} for each binding of type {@code T} 163 * Returns the provider used to obtain instances for the given injection key. When feasible, avoid 166 * @throws ConfigurationException if this injector cannot find or create the provider. 169 <T> Provider<T> getProvider(Key<T> key); 172 * Returns the provider used to obtain instances for the given type. When feasible, avoid using 175 * @throws ConfigurationException if this injector cannot find or create the provider. 178 <T> Provider<T> getProvider(Class<T> type); 185 * @throws ConfigurationException if this injector cannot find or create the provider. 195 * @throws ConfigurationException if this injector cannot find or create the provider.
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
TrustManagerFactoryTest.java | 29 import java.security.Provider; 159 private void test_X509TrustManager(Provider p, X509TrustManager tm) throws Exception { 196 Provider[] providers = Security.getProviders(); 197 for (Provider provider : providers) { 198 Set<Provider.Service> services = provider.getServices(); 199 for (Provider.Service service : services) { 212 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, provider); 214 assertEquals(provider, tmf.getProvider()) [all...] |
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
TrustManagerFactoryTest.java | 30 import java.security.Provider; 163 private void test_X509TrustManager(Provider p, X509TrustManager tm) throws Exception { 200 Provider[] providers = Security.getProviders(); 201 for (Provider provider : providers) { 202 Set<Provider.Service> services = provider.getServices(); 203 for (Provider.Service service : services) { 216 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, provider); 218 assertEquals(provider, tmf.getProvider()) [all...] |
/external/guice/core/test/com/googlecode/guice/ |
Jsr330Test.java | 41 import javax.inject.Provider; 267 * This test verifies that we can compile bindings to provider instances whose compile-time type 268 * implements javax.inject.Provider but not com.google.inject.Provider. For binary compatibility, 269 * we don't (and won't) support binding to instances of javax.inject.Provider. 293 Provider<String> jsr330Provider = 294 new Provider<String>() { 306 com.google.inject.Provider<String> guicified = Providers.guicify(jsr330Provider); 317 Provider<String> jsr330Provider = 318 new Provider<String>() [all...] |
/external/guice/extensions/mini/test/com/google/inject/mini/ |
MiniGuiceTest.java | 23 import javax.inject.Provider; 108 @Inject Provider<A> aProvider; 136 @Inject Provider<F> fProvider; 137 @Inject Provider<I> iProvider; 192 F provideF(Provider<A> aProvider) { 211 @Inject Provider<L> lProvider; 245 @Inject Provider<F> fProvider;
|