xref: /aosp_15_r20/external/dagger2/javatests/dagger/functional/binds/TestComponent.java (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1 /*
2  * Copyright (C) 2016 The Dagger Authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package dagger.functional.binds;
18 
19 import dagger.Component;
20 import dagger.functional.binds.subpackage.ExposedModule;
21 import java.util.Map;
22 import java.util.Set;
23 import javax.inject.Provider;
24 import javax.inject.Singleton;
25 
26 @Singleton
27 @Component(modules = {SimpleBindingModule.class, ExposedModule.class})
28 public interface TestComponent {
object()29   Object object();
30 
notExposedString()31   String notExposedString();
32 
33   @SomeQualifier
reusableObject()34   Object reusableObject();
35 
fooOfStrings()36   Foo<String> fooOfStrings();
37 
fooOfObjects()38   Foo<Object> fooOfObjects();
39 
40   @SomeQualifier
qualifiedFooOfStrings()41   Foo<String> qualifiedFooOfStrings();
42 
fooOfIntegers()43   Foo<Integer> fooOfIntegers();
44 
foosOfNumbers()45   Set<Foo<? extends Number>> foosOfNumbers();
46 
objects()47   Set<Object> objects();
48 
charSequences()49   Set<CharSequence> charSequences();
50 
integerObjectMap()51   Map<Integer, Object> integerObjectMap();
52 
integerProviderOfObjectMap()53   Map<Integer, Provider<Object>> integerProviderOfObjectMap();
54 
qualifiedIntegerObjectMap()55   @SomeQualifier Map<Integer, Object> qualifiedIntegerObjectMap();
56 
uniquePrimitive()57   @SomeQualifier int uniquePrimitive();
58 
primitiveSet()59   Set<Integer> primitiveSet();
60 
primitiveValueMap()61   Map<Integer, Integer> primitiveValueMap();
62 }
63