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.SomeQualifier; 21 import dagger.functional.binds.subpackage.ExposedModule; 22 import java.util.Map; 23 import java.util.Set; 24 import javax.inject.Provider; 25 import javax.inject.Singleton; 26 27 @Singleton 28 @Component(modules = {SimpleBindingModule.class, ExposedModule.class}) 29 public interface TestComponent { object()30 Object object(); 31 notExposedString()32 String notExposedString(); 33 34 @SomeQualifier reusableObject()35 Object reusableObject(); 36 fooOfStrings()37 Foo<String> fooOfStrings(); 38 fooOfObjects()39 Foo<Object> fooOfObjects(); 40 41 @SomeQualifier qualifiedFooOfStrings()42 Foo<String> qualifiedFooOfStrings(); 43 fooOfIntegers()44 Foo<Integer> fooOfIntegers(); 45 foosOfNumbers()46 Set<Foo<? extends Number>> foosOfNumbers(); 47 objects()48 Set<Object> objects(); 49 charSequences()50 Set<CharSequence> charSequences(); 51 integerObjectMap()52 Map<Integer, Object> integerObjectMap(); 53 integerProviderOfObjectMap()54 Map<Integer, Provider<Object>> integerProviderOfObjectMap(); 55 qualifiedIntegerObjectMap()56 @SomeQualifier Map<Integer, Object> qualifiedIntegerObjectMap(); 57 uniquePrimitive()58 @SomeQualifier int uniquePrimitive(); 59 primitiveSet()60 Set<Integer> primitiveSet(); 61 primitiveValueMap()62 Map<Integer, Integer> primitiveValueMap(); 63 } 64