Home
last modified time | relevance | path

Searched refs:Injector (Results 1 – 25 of 189) sorted by relevance

12345678

/external/guice/core/test/com/google/inject/
DParentInjectorTest.java38 Injector parent = Guice.createInjector(bindsA); in testParentAndChildCannotShareExplicitBindings()
58 Injector parent = Guice.createInjector(); in testParentJitBindingWontClobberChildBinding()
75 Injector parent = Guice.createInjector(); in testChildCannotBindToAParentJitBinding()
90 Injector parent = Guice.createInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible()
91 Injector child = parent.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible()
94 Injector anotherChild = parent.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible()
97 Injector grandchild = child.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible()
102 Injector parent = Guice.createInjector(bindsB); in testBindingsInherited()
103 Injector child = parent.createChildInjector(); in testBindingsInherited()
108 Injector top = Guice.createInjector(bindsA); in testGetParent()
[all …]
DJitBindingsTest.java57 Injector injector = in testLinkedBindingWorks()
75 Injector injector = in testMoreBasicsWork()
95 Injector injector = in testLinkedEagerSingleton()
113 Injector injector = in testBasicsWithEagerSingleton()
133 Injector injector = in testLinkedToScoped()
151 Injector injector = in testBasicsWithScoped()
189 Injector injector = in testLinkedProviderBindingWorks()
276 Injector injector = in testImplementedBy()
290 Injector injector = in testImplementedBySomethingThatIsAnnotated()
304 Injector injector = in testProvidedBy()
[all …]
DBindingTest.java141 Injector injector = in testScopeIsAppliedToKeyNotTarget()
243 TooManyConstructors(Injector i) {} in TooManyConstructors()
252 Injector injector = in testToConstructorBinding()
270 Injector injector = in testToConstructorBindingsOnParameterizedTypes()
276 bind(i).toConstructor(constructor, new TypeLiteral<C<Injector>>() {}); in testToConstructorBindingsOnParameterizedTypes()
285 C<Injector> two = (C<Injector>) injector.getInstance(i); in testToConstructorBindingsOnParameterizedTypes()
325 Injector injector = in testToConstructorAndMethodInterceptors()
345 Injector injector = in testInaccessibleConstructor()
366 Injector injector = in testToConstructorAndScopes()
385 public void assertDistinct(Injector injector, int expectedCount, Key<?>... keys) { in assertDistinct()
[all …]
DImplicitBindingTest.java31 Injector injector = Guice.createInjector(); in testCircularDependency()
50 Injector injector = Guice.createInjector(); in testDefaultImplementation()
71 Injector injector = Guice.createInjector(); in testDefaultProvider()
77 Injector injector = in testBindingOverridesImplementedBy()
135 Injector injector = in testCircularJitBindingsLeaveNoResidue()
173 private void assertFailure(Injector injector, Class clazz) { in assertFailure()
280 Injector parentSetupRootInjector = Guice.createInjector(testModule); in testInstancesRequestingProvidersForThemselvesWithChildInjectors()
281 Injector parentSetupChildInjector = parentSetupRootInjector.createChildInjector(); in testInstancesRequestingProvidersForThemselvesWithChildInjectors()
290 Injector childSetupRootInjector = Guice.createInjector(); in testInstancesRequestingProvidersForThemselvesWithChildInjectors()
291 Injector childSetupChildInjector = childSetupRootInjector.createChildInjector(testModule); in testInstancesRequestingProvidersForThemselvesWithChildInjectors()
[all …]
DMethodInterceptionTest.java66 Injector injector = in testSharedProxyClasses()
76 Injector childOne = in testSharedProxyClasses()
89 Injector childTwo = in testSharedProxyClasses()
106 Injector injector2 = in testSharedProxyClasses()
126 Injector injector = in testGetThis()
150 Injector injector = in testInterceptingFinalClass()
182 Injector injector = in testSpiAccessToInterceptors()
217 Injector injector = in testInterceptedMethodThrows()
244 Injector injector = in testNotInterceptedMethodsInInterceptedClassDontAddFrames()
303 Injector injector = in testInterceptingNonBridgeWorks()
[all …]
DInjectorTest.java50 Injector injector = Guice.createInjector(Stage.TOOL); in testToStringDoesNotInfinitelyRecurse()
52 injector.getBinding(Injector.class).toString(); in testToStringDoesNotInfinitelyRecurse()
59 Injector injector = in testProviderMethods()
78 Injector injector = createFooInjector(); in testInjection()
91 private Injector createFooInjector() throws CreationException { in createFooInjector()
105 Injector injector = createFooInjector();
113 Injector injector =
127 Injector injector = Guice.createInjector();
265 Injector injector =
296 Injector injector =
[all …]
DPrivateModuleTest.java41 Injector injector = in testBasicUsage()
82 Injector injector = in testWithoutPrivateModules()
146 Injector injector = in testPrivateModulesAndProvidesMethods()
309 Injector injector = in testNestedPrivateInjectors()
331 Injector injector = in testInstallingRegularModulesFromPrivateModules()
352 Injector injector = in testNestedPrivateModulesWithSomeKeysUnexposed()
401 Injector injector = in testDependenciesBetweenPrivateAndPublic()
440 Injector injector = in testDependenciesBetweenPrivateAndPublicWithPublicEagerSingleton()
496 Injector injector = in testDependenciesBetweenPrivateAndPublicWithPrivateEagerSingleton()
563 Injector injector = in testSpiAccess()
[all …]
DCircularDependencyTest.java45 Injector injector = in testCircularlyDependentConstructors()
58 Injector injector = in testCircularlyDependentConstructorsWithProviderMethods()
77 Injector injector = in testCircularlyDependentConstructorsWithProviderInstances()
109 Injector injector = in testCircularlyDependentConstructorsWithProviderKeys()
122 Injector injector = Guice.createInjector(); in testCircularlyDependentConstructorsWithProvidedBy()
126 private void assertCircularDependencies(Injector injector) { in assertCircularDependencies()
441 Injector injector = in testCircularlyDependentMultipleWays()
454 Injector injector = in testDisablingCircularDependencies()
499 Injector injector = in testCircularDependencyProxyDelegateNeverInitialized()
567 Injector injector = in testCircularDependenciesDetectedEarlyWhenDependenciesHaveDifferentTypes()
[all …]
/external/guice/core/test/com/google/inject/spi/
DModuleAnnotatedMethodScannerTest.java32 import com.google.inject.Injector;
65 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testScanning()
98 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testSkipSources()
120 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testWithSource()
195 Injector injector, Class<?> clazz, String originalName, Object expectedValue) {
250 Injector parent = Guice.createInjector(NamedMunger.module());
251 Injector child =
274 Injector parent = Guice.createInjector();
275 Injector child = parent.createChildInjector(NamedMunger.module(), module);
279 Injector sibling = parent.createChildInjector(module);
[all …]
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/
DBoundFieldModuleTest.java27 import com.google.inject.Injector;
59 Injector injector = Guice.createInjector(module); in testBindingOnePrivate()
72 Injector injector = Guice.createInjector(module); in testBindingOnePublic()
95 Injector injector = Guice.createInjector(module); in testSuperTypeBinding()
110 Injector injector = Guice.createInjector(module); in testBindingTwo()
125 Injector injector = Guice.createInjector(module); in testBindingSuperType()
139 Injector injector = Guice.createInjector(module); in testBindingSuperTypeAccessSubType()
190 Injector injector = Guice.createInjector(module); in testBindingWithBindingAnnotation()
211 Injector injector = Guice.createInjector(module); in testBindingWithQualifier()
232 Injector injector = Guice.createInjector(module); in testCanReuseBindingAnnotationsWithDifferentValues()
[all …]
/external/google-fruit/include/fruit/
Dinjector.h48 class Injector {
51 Injector(Injector&&) = default;
54 Injector(const Injector&) = delete;
82 Injector(Component<P...> (*)(FormalArgs...), Args&&... args);
117 Injector(const NormalizedComponent<NormalizedComponentParams...>& normalized_component,
125 Injector(NormalizedComponent<NormalizedComponentParams...>&& normalized_component,
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DMultipleServletInjectorsTest.java27 import com.google.inject.Injector;
40 private Injector injectorOne;
41 private Injector injectorTwo;
47 fakeContextOne.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors()
50 fakeContextTwo.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors()
59 protected Injector getInjector() { in testTwoInjectors()
82 protected Injector getInjector() { in testTwoInjectors()
DFilterDefinitionTest.java12 import com.google.inject.Injector;
38 Injector injector = createMock(Injector.class); in testFilterInitAndConfig()
91 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroy()
145 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroySupressChain()
215 Injector injector = createMock(Injector.class); in testGetFilterIfMatching()
252 Injector injector = createMock(Injector.class); in testGetFilterIfMatchingNotMatching()
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
DJava8LanguageFeatureBindingTest.java23 import com.google.inject.Injector;
47 Injector injector = in testBinding_lambdaToInterface()
62 Injector injector = in testProviderMethod_returningLambda()
77 Injector injector = in testProviderMethod_containingLambda_throwingException()
114 Injector injector = in testProvider_usingJdk8Features()
142 Injector injector = in testBinding_toProvider_lambda()
157 Injector injector = in testBinding_toProvider_methodReference()
DDefaultMethodInterceptionTest.java25 import com.google.inject.Injector;
77 Injector injector = in testInterceptedDefaultMethod()
95 Injector injector = in testInterceptedDefaultMethod_calledByAnotherMethod()
124 Injector injector = in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod()
160 Injector injector = in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod()
195 Injector injector = in testInterception_ofAllMethodsOnType()
214 Injector injector = in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProvider2Test.java27 import com.google.inject.Injector;
58 Injector injector = in testAssistedFactory()
80 Injector injector = in testAssistedFactoryWithAnnotations()
145 Injector injector = in testFactoryUsesInjectedConstructor()
183 Injector injector = in testConstructorDoesntNeedAllFactoryMethodArguments()
208 Injector injector = in testMethodsAndFieldsGetInjected()
248 Injector injector = in testProviderInjection()
278 Injector injector = in testAssistedProviderInjection()
315 Injector injector = in testTypeTokenInjection()
351 Injector injector = in testTypeTokenProviderInjection()
[all …]
DFactoryProviderTest.java28 import com.google.inject.Injector;
61 Injector injector = in testAssistedFactory()
83 Injector injector = in testFactoryBindingDependencies()
102 Injector injector = in testAssistedFactoryWithAnnotations()
167 Injector injector = in testFactoryWithMultipleMethods()
244 Injector injector = in testMethodsAndFieldsGetInjected()
284 Injector injector = in testProviderInjection()
314 Injector injector = in testTypeTokenInjection()
350 Injector injector = in testTypeTokenProviderInjection()
389 Injector injector = in testAssistInjectionInNonPublicConstructor()
[all …]
/external/guice/extensions/dagger-adapter/test/com/google/inject/daggeradapter/
DDaggerAdapterTest.java22 import com.google.inject.Injector;
52 Injector i = Guice.createInjector(DaggerAdapter.from(new SimpleDaggerModule())); in testSimpleModule()
64 Injector i = in testInteractionWithGuiceModules()
88 Injector i = in testSetBindings()
109 Injector i = in testSetBindingsWithAnnotation()
126 Injector i = in testSetBindingsWithGuiceModule()
/external/guice/core/src/com/google/inject/
DGuice.java58 public static Injector createInjector(Module... modules) { in createInjector()
68 public static Injector createInjector(Iterable<? extends Module> modules) { in createInjector()
77 public static Injector createInjector(Stage stage, Module... modules) { in createInjector()
86 public static Injector createInjector(Stage stage, Iterable<? extends Module> modules) { in createInjector()
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java35 import com.google.inject.Injector;
70 Injector injector = createInjector(Modules.override(newModule("A")).with(newModule("B"))); in testOverride()
78 Injector injector = createInjector(module); in testOverrideMultiple()
86 Injector injector = createInjector(Modules.override(EMPTY_MODULE).with(newModule("B"))); in testOverrideUnmatchedTolerated()
107 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideConstant()
121 Injector injector = createInjector(Modules.override(original).with(EMPTY_MODULE)); in testGetProviderInModule()
138 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideWhatGetProviderProvided()
161 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideUsingOriginalsGetProvider()
197 Injector injector = createInjector(Modules.override(overrides).with(replacements2)); in testOverrideOfOverride()
311 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideUntargettedBinding()
[all …]
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DGuiceServletContextListener.java19 import com.google.inject.Injector;
35 static final String INJECTOR_NAME = Injector.class.getName();
45 Injector injector = getInjector(); in contextInitialized()
59 protected abstract Injector getInjector(); in getInjector()
/external/guice/core/src/com/google/inject/internal/
DInternalInjectorCreator.java20 import com.google.inject.Injector;
95 public Injector build() { in build()
163 private Injector primaryInjector() { in primaryInjector()
241 static class ToolStageInjector implements Injector {
242 private final Injector delegateInjector;
244 ToolStageInjector(Injector delegateInjector) { in ToolStageInjector()
285 public Injector getParent() { in getParent()
290 public Injector createChildInjector(Iterable<? extends Module> modules) { in createChildInjector()
295 public Injector createChildInjector(Module... modules) { in createChildInjector()
DInjectorShell.java25 import com.google.inject.Injector;
219 Key<Injector> key = Key.get(Injector.class); in bindInjector()
223 new ProviderInstanceBindingImpl<Injector>( in bindInjector()
233 private static class InjectorFactory implements InternalFactory<Injector>, Provider<Injector> {
234 private final Injector injector;
236 private InjectorFactory(Injector injector) { in InjectorFactory()
241 public Injector get(InternalContext context, Dependency<?> dependency, boolean linked) { in get()
246 public Injector get() { in get()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderMethodsModuleTest.java23 import com.google.inject.Injector;
125 Injector injector = Guice.createInjector(new TestModule()); in testNoAnnotationNoScope()
132 Injector injector = Guice.createInjector(testModule); in testWithScope()
144 Injector injector = Guice.createInjector(testModule); in testWithAnnotation()
152 Injector injector = Guice.createInjector(testModule); in testWithInjectedParameters()
160 Injector injector = Guice.createInjector(testModule); in testWithThrownException()
174 Injector injector = Guice.createInjector(testModule); in testExposedMethod()
/external/google-fruit/include/fruit/impl/
Dinjector.defn.h29 inline Injector<P...>::Injector(Component<P...> (*getComponent)(FormalArgs...), Args&&... args) { in Injector() function
94 inline Injector<P...>::Injector(const NormalizedComponent<NormalizedComponentParams...>& normalized… in Injector() function
117 inline fruit::impl::RemoveAnnotations<T> Injector<P...>::get() { in get()
125 inline Injector<P...>::operator T() { in T()
131 inline const std::vector<fruit::impl::RemoveAnnotations<AnnotatedC>*>& Injector<P...>::getMultibind… in getMultibindings()
141 FRUIT_DEPRECATED_DEFINITION(inline void Injector<P...>::eagerlyInjectAll()) { in FRUIT_DEPRECATED_DEFINITION()

12345678