Home
last modified time | relevance | path

Searched refs:FactoryProvider (Results 1 – 3 of 3) sorted by relevance

/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProviderTest.java60 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
80 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testFactoryBindingDependencies()
97 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
159 FactoryProvider.newFactory(SummerCarFactory.class, Corvette.class)); in testFactoryWithMultipleMethods()
201 FactoryProvider.newFactory(SummerCarFactory.class, Beetle.class); in testFactoryMethodsMismatch()
234 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Porshe.class)); in testMethodsAndFieldsGetInjected()
269 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Firebird.class)); in testProviderInjection()
297 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, DeLorean.class)); in testTypeTokenInjection()
328 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Z.class)); in testTypeTokenProviderInjection()
364 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Prius.class)); in testAssistInjectionInNonPublicConstructor()
[all …]
DFactoryProvider2Test.java56 FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
77 FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
139 FactoryProvider.newFactory(SummerCarFactory.class, Corvette.class)); in testFactoryUsesInjectedConstructor()
174 FactoryProvider.newFactory(SummerCarFactory.class, Beetle.class)); in testConstructorDoesntNeedAllFactoryMethodArguments()
199 FactoryProvider.newFactory(ColoredCarFactory.class, Porsche.class)); in testMethodsAndFieldsGetInjected()
234 FactoryProvider.newFactory(ColoredCarFactory.class, Firebird.class)); in testProviderInjection()
261 FactoryProvider.newFactory(ColoredCarFactory.class, Flamingbird.class)); in testAssistedProviderInjection()
295 FactoryProvider.newFactory(ColoredCarFactory.class, DeLorean.class)); in testTypeTokenInjection()
326 FactoryProvider.newFactory(ColoredCarFactory.class, Z.class)); in testTypeTokenProviderInjection()
361 FactoryProvider.newFactory(ColoredCarFactory.class, Prius.class)); in testAssistInjectionInNonPublicConstructor()
[all …]
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider.java153 public class FactoryProvider<F> implements Provider<F>, HasDependencies { class
176 return new FactoryProvider<F>(factoryType, implementationType, factoryMethodToConstructor); in newFactory()
201 private FactoryProvider(TypeLiteral<F> factoryType, in FactoryProvider() method in FactoryProvider
389 if (!(obj instanceof FactoryProvider)) { in equals()
392 FactoryProvider<?> other = (FactoryProvider<?>) obj; in equals()