Home
last modified time | relevance | path

Searched refs:Inject (Results 1 – 25 of 251) sorted by relevance

1234567891011

/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
DInjectedThing.java20 import javax.inject.Inject;
25 @Inject byte primitiveByte;
26 @Inject char primitiveChar;
27 @Inject short primitiveShort;
28 @Inject int primitiveInt;
29 @Inject long primitiveLong;
30 @Inject boolean primitiveBoolean;
31 @Inject float primitiveFloat;
32 @Inject double primitiveDouble;
34 @Inject Provider<Byte> byteProvider;
[all …]
DGenericParent.java18 import javax.inject.Inject;
27 @Inject GenericParent() {} in GenericParent()
29 @Inject X x;
30 @Inject Y y;
31 @Inject B b;
33 @Inject void registerX(X x) { this.registeredX = x; } in registerX()
34 @Inject void registerY(Y y) { this.registeredY = y; } in registerY()
35 @Inject void registerB(B b) { this.registeredB = b; } in registerB()
DGenericChild.java18 import javax.inject.Inject;
25 @Inject GenericChild() {} in GenericChild()
27 @Inject A a;
28 @Inject T t;
30 @Inject void registerA(A a) { this.registeredA = a; } in registerA()
31 @Inject void registerT(T t) { this.registeredT = t; } in registerT()
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/cycle/
DLongCycle.java19 import javax.inject.Inject;
23 static class Class1 { @Inject Class1(Class2 class2) {} } in Class1()
24 static class Class2 { @Inject Class2(Class3 class3) {} } in Class2()
25 static class Class3 { @Inject Class3(Class4 class4) {} } in Class3()
26 static class Class4 { @Inject Class4(Class5 class5) {} } in Class4()
27 static class Class5 { @Inject Class5(Class6 class6) {} } in Class5()
28 static class Class6 { @Inject Class6(Class7 class7) {} } in Class6()
29 static class Class7 { @Inject Class7(Class8 class8) {} } in Class7()
30 static class Class8 { @Inject Class8(Class9 class9) {} } in Class8()
31 static class Class9 { @Inject Class9(Class10 class10) {} } in Class9()
[all …]
DCycles.java25 import javax.inject.Inject;
46 @Inject
56 @Inject
64 @Inject public Lazy<A> aLazy;
66 @Inject
75 @Inject
84 @Inject
92 @Inject public Lazy<S> sLazy;
94 @Inject
103 @Inject
[all …]
/external/guice/core/test/com/googlecode/guice/bundle/
DOSGiTestActivator.java23 import com.google.inject.Inject;
62 @Inject public void setA(Undefined undefined) {} in setA()
64 @Inject protected void setB(Undefined undefined) {} in setB()
66 @Inject void setC(Undefined undefined) {} in setC()
68 @Inject private void setD(Undefined undefined) {} in setD()
70 @Inject public Undefined a;
72 @Inject protected Undefined b;
74 @Inject Undefined c;
76 @Inject private Undefined d;
84 @Inject public void setA(Undefined undefined) {} in setA()
[all …]
/external/guice/extensions/mini/test/com/google/inject/mini/
DMiniGuiceTest.java25 import javax.inject.Inject;
51 @Inject A() {} in A()
55 @Inject B() {} in B()
60 @Inject C() {} in C()
65 @Inject D() {} in D()
78 @Inject A a;
79 @Inject B b;
82 @Inject E e;
83 @Inject G(C c, D d) { in G()
97 @Inject Provider<A> aProvider;
[all …]
/external/jsr330/tck/org/atinject/tck/auto/
DTire.java22 import javax.inject.Inject;
33 @Inject FuelTank fieldInjection = NEVER_INJECTED;
35 @Inject static FuelTank staticFieldInjection = NEVER_INJECTED;
67 @Inject public Tire(FuelTank constructorInjection) { in Tire()
71 @Inject void supertypeMethodInjection(FuelTank methodInjection) { in supertypeMethodInjection()
84 @Inject static void supertypeStaticMethodInjection(FuelTank methodInjection) { in supertypeStaticMethodInjection()
97 @Inject private void injectPrivateMethod() { in injectPrivateMethod()
104 @Inject void injectPackagePrivateMethod() { in injectPackagePrivateMethod()
111 @Inject protected void injectProtectedMethod() { in injectProtectedMethod()
118 @Inject public void injectPublicMethod() { in injectPublicMethod()
[all …]
DConvertible.java24 import javax.inject.Inject;
30 @Inject @Drivers Seat driversSeatA;
31 @Inject @Drivers Seat driversSeatB;
32 @Inject SpareTire spareTire;
33 @Inject Cupholder cupholder;
34 @Inject Provider<Engine> engineProvider;
49 @Inject Seat fieldPlainSeat;
50 @Inject @Drivers Seat fieldDriversSeat;
51 @Inject Tire fieldPlainTire;
52 @Inject @Named("spare") Tire fieldSpareTire;
[all …]
DEngine.java21 import javax.inject.Inject;
43 @Inject void injectPackagePrivateMethod() { in injectPackagePrivateMethod()
47 @Inject void injectPackagePrivateMethodForOverride() { in injectPackagePrivateMethodForOverride()
51 @Inject public void injectQualifiers(@Drivers Seat seatA, Seat seatB, in injectQualifiers()
61 @Inject public void injectTwiceOverriddenWithOmissionInMiddle() { in injectTwiceOverriddenWithOmissionInMiddle()
65 @Inject public void injectTwiceOverriddenWithOmissionInSubclass() { in injectTwiceOverriddenWithOmissionInSubclass()
/external/jsr330/tck/org/atinject/tck/auto/accessories/
DSpareTire.java22 import javax.inject.Inject;
27 @Inject FuelTank fieldInjection = NEVER_INJECTED;
29 @Inject static FuelTank staticFieldInjection = NEVER_INJECTED;
32 @Inject public SpareTire(FuelTank forSupertype, FuelTank forSubtype) { in SpareTire()
37 @Inject void subtypeMethodInjection(FuelTank methodInjection) { in subtypeMethodInjection()
44 @Inject static void subtypeStaticMethodInjection(FuelTank methodInjection) { in subtypeStaticMethodInjection()
51 @Inject private void injectPrivateMethod() { in injectPrivateMethod()
58 @Inject void injectPackagePrivateMethod() { in injectPackagePrivateMethod()
65 @Inject protected void injectProtectedMethod() { in injectProtectedMethod()
72 @Inject public void injectPublicMethod() { in injectPublicMethod()
[all …]
/external/guice/core/test/com/google/inject/spi/
DToolStageInjectorTest.java7 import com.google.inject.Inject;
128 @SuppressWarnings("unused") @Inject private static List list;
129 @SuppressWarnings("unused") @Inject private Set set;
130 @SuppressWarnings("unused") @Inject void method(Collection c) {} in method()
131 @SuppressWarnings("unused") @Inject static void staticMethod(Map map) {} in staticMethod()
135 @Inject private static S s;
136 @Inject private F f;
138 @SuppressWarnings("unused") @Inject void method(M m) { this.m = m; } in method()
140 @SuppressWarnings("unused") @Inject static void staticMethod(SM sm) { Tooled.sm = sm; } in staticMethod()
148 @Inject private static S s;
[all …]
DInjectionPointTest.java28 import com.google.inject.Inject;
52 public @Inject @Named("a") String foo;
53 public @Inject void bar(@Named("b") String param) {} in bar()
56 @Inject public Constructable(@Named("c") String param) {} in Constructable()
196 @Inject public static void staticMethod(@Named("a") String a) {} in staticMethod()
197 @Inject @Named("c") public static String staticField;
198 @Inject public void instanceMethod(@Named("d") String d) {} in instanceMethod()
199 @Inject @Named("f") public String instanceField;
214 @Inject Set<T> setOfTees;
215 @Inject public ParameterizedInjections(Map<T, T> map) {} in ParameterizedInjections()
[all …]
/external/guice/core/test/com/google/inject/
DImplicitBindingTest.java40 @Inject Bar bar;
45 @Inject
177 @Inject Valid a;
178 @Inject JitValid b;
179 @Inject InvalidProvidedBy c;
180 @Inject Invalid(InvalidLinked a) {} in Invalid()
181 @Inject void foo(InvalidInterface a) {} in foo()
188 @Inject InvalidLinked2 a;
194 @Inject InvalidLinked2Impl(Invalid2 a) {} in InvalidLinked2Impl()
200 @Inject InvalidProvidedBy2 a;
[all …]
DErrorHandlingTest.java69 @Inject String mofo;
72 @Inject @Named("missing")
76 @Inject
79 @Inject void setNames(List<String> names) {} in setNames()
86 @Inject void setNumbers(@Named("numbers") List<Integer> numbers) {} in setNumbers()
88 @Inject void bar(@Named("foo") String s) {} in bar()
92 @Inject String s;
94 @Inject void tee(String s, int i) {} in tee()
96 @Inject Invalid invalid;
131 @Inject void foo() { in configure()
DInjectorTest.java135 @Inject @I Integer i;
140 @Inject Bar bar;
141 @Inject Bar copy;
143 @Inject @S String s;
147 @Inject
162 @Inject @I int i;
166 @Inject
189 @Inject Bar bar;
191 @Inject
241 @Inject @I static int i;
[all …]
DTypeConversionTest.java54 @Inject @BooleanValue Boolean booleanField;
55 @Inject @BooleanValue boolean primitiveBooleanField;
56 @Inject @NumericValue Byte byteField;
57 @Inject @NumericValue byte primitiveByteField;
58 @Inject @NumericValue Short shortField;
59 @Inject @NumericValue short primitiveShortField;
60 @Inject @NumericValue Integer integerField;
61 @Inject @NumericValue int primitiveIntField;
62 @Inject @NumericValue Long longField;
63 @Inject @NumericValue long primitiveLongField;
[all …]
DProviderInjectionTest.java59 @Inject void cantBeCalled(Baz baz) { in testProvidersAreInjectedWhenBound()
88 @Inject void initialize(List list) { in testProvidersAreInjectedBeforeTheyAreUsed()
98 @Inject Boolean injectedYet = Boolean.FALSE; in testProvidersAreInjectedBeforeTheyAreUsed()
124 @Inject void initialize(@Named("b") Count bCount) { in testCreationTimeInjectionOrdering()
132 @Inject void initialize(@Named("c") Count cCount) { in testCreationTimeInjectionOrdering()
142 @Inject @Named("d") Count dCount; in testCreationTimeInjectionOrdering()
143 @Inject void initialize(@Named("e") Count eCount) { in testCreationTimeInjectionOrdering()
171 @Inject static void initialize(@Named("c") Count cCount) { in initialize()
177 @Inject Provider<Bar> barProvider;
178 @Inject Provider<SampleSingleton> singletonProvider;
DCircularDependencyTest.java73 @Inject Provider<B> bp; in testCircularlyDependentConstructorsWithProviderInstances()
79 @Inject Provider<A> ap; in testCircularlyDependentConstructorsWithProviderInstances()
129 @Inject public AImpl(B b) { in AImpl()
141 @Inject Provider<B> bp;
149 @Inject Provider<B> bp;
171 @Inject public BImpl(A a) { in BImpl()
184 @Inject BP(Provider<A> ap) { in BP()
246 @Inject C(D d) {} in C()
249 @Inject D(C c) {} in D()
253 @Inject Provider<D2> dp;
[all …]
DProvisionExceptionTest.java277 @Inject
281 @Inject C c;
284 @Inject
288 @Inject void setObject(Object o) { in setObject()
294 @Inject @Green void injectMe(String greenString) {} in injectMe()
301 @Inject @Green ConstructorWithBindingAnnotation(String greenString) {} in ConstructorWithBindingAnnotation()
309 @Inject @Green String green;
310 @Inject @Green String green() { return green; } in green()
321 @Inject RealD() { in RealD()
333 @Inject public F() { in F()
[all …]
DRequestInjectionTest.java169 @Inject Runnable runnable;
174 @Inject @ForField static int staticField;
175 @Inject @ForField int instanceField;
180 @Inject static void setStaticMethod(@ForMethod String staticMethod) { in setStaticMethod()
184 @Inject void setInstanceS(@ForMethod String instanceS) { in setInstanceS()
190 @Inject void injectInstance() { in injectInstance()
194 @Inject static void injectStatically() { in injectStatically()
229 @SuppressWarnings("unused") @Inject Object obj; in testEarlyInjectableReferencesWithSameIdentity()
230 @SuppressWarnings("unused") @Inject String str; in testEarlyInjectableReferencesWithSameIdentity()
DOptionalBindingTest.java176 @Inject(optional=true) A a = originalA; // field injection
181 @Inject(optional=true) Provider<F> fProvider; // provider
185 @Inject(optional=true) void methodInjectZeroArguments() { in methodInjectZeroArguments()
189 @Inject(optional=true) void methodInjectOneArgument(B b) { in methodInjectOneArgument()
194 @Inject(optional=true) void methodInjectTwoArguments(C c, D d) { in methodInjectTwoArguments()
200 @Inject(optional=true) void methodInjectAnnotated(@Named("e") E e) { in methodInjectAnnotated()
205 @Inject(optional=true) void methodInjectProvider(Provider<G> gProvider) { in methodInjectProvider()
261 @Inject(optional=true)
265 @Inject(optional=true) static A staticInjectA;
288 @Inject HasOptionalInjections hasOptionalInjections;
DNullableInjectionPointTest.java197 @Inject FooConstructor(Foo foo) { }
200 @Inject Foo foo;
203 @Inject
209 @Inject NullableFooConstructor(@Nullable Foo foo) {
214 @Inject @Nullable Foo foo;
218 @Inject void setFoo(@Nullable Foo foo) {
225 @Inject CustomNullableFooConstructor(@Namespace.Nullable Foo foo) {
231 @Inject @Namespace.Nullable Foo foo;
235 @Inject void setFoo(@Namespace.Nullable Foo foo) {
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/nullables/
DNullFoo.java18 import javax.inject.Inject;
27 @Inject
42 @Inject void inject(@Nullable String string, in inject()
52 @Nullable @Inject String fieldInjectedString;
53 @Inject Provider<String> fieldInjectedStringProvider;
54 @Inject Number fieldInjectedNumber;
55 @Inject Provider<Number> fieldInjectedNumberProvider;
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
DDeLorian.java19 import com.google.inject.Inject;
25 @Inject @Driver Provider<Person> driver;
26 @Inject FluxCapacitor fluxCapacitor;
27 @Inject PrivateTestModule.Exposed exposed;
29 @Inject

1234567891011