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.java68 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
90 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testFactoryBindingDependencies()
110 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
174 .toProvider(FactoryProvider.newFactory(SummerCarFactory.class, Corvette.class)); in testFactoryWithMultipleMethods()
216 FactoryProvider.newFactory(SummerCarFactory.class, Beetle.class); in testFactoryMethodsMismatch()
253 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Porshe.class)); in testMethodsAndFieldsGetInjected()
292 FactoryProvider.newFactory(ColoredCarFactory.class, Firebird.class)); in testProviderInjection()
324 FactoryProvider.newFactory(ColoredCarFactory.class, DeLorean.class)); in testTypeTokenInjection()
357 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Z.class)); in testTypeTokenProviderInjection()
395 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Prius.class)); in testAssistInjectionInNonPublicConstructor()
[all …]
DFactoryProvider2Test.java65 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
88 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
152 .toProvider(FactoryProvider.newFactory(SummerCarFactory.class, Corvette.class)); in testFactoryUsesInjectedConstructor()
189 .toProvider(FactoryProvider.newFactory(SummerCarFactory.class, Beetle.class)); in testConstructorDoesntNeedAllFactoryMethodArguments()
217 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Porsche.class)); in testMethodsAndFieldsGetInjected()
256 FactoryProvider.newFactory(ColoredCarFactory.class, Firebird.class)); in testProviderInjection()
286 FactoryProvider.newFactory(ColoredCarFactory.class, Flamingbird.class)); in testAssistedProviderInjection()
325 FactoryProvider.newFactory(ColoredCarFactory.class, DeLorean.class)); in testTypeTokenInjection()
358 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Z.class)); in testTypeTokenProviderInjection()
395 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Prius.class)); in testAssistInjectionInNonPublicConstructor()
[all …]
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider.java165 public class FactoryProvider<F> implements Provider<F>, HasDependencies { class
188 return new FactoryProvider<F>(factoryType, implementationType, factoryMethodToConstructor); in newFactory()
213 private FactoryProvider( in FactoryProvider() method in FactoryProvider
417 if (!(obj instanceof FactoryProvider)) { in equals()
420 FactoryProvider<?> other = (FactoryProvider<?>) obj; in equals()