• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.producers.multibindings;
18 
19 import com.google.common.util.concurrent.ListenableFuture;
20 import dagger.functional.producers.ExecutorModule;
21 import dagger.functional.producers.multibindings.Qualifiers.EmptyButDeclaredInModule;
22 import dagger.functional.producers.multibindings.Qualifiers.EmptyButDeclaredInModuleAndProducerModule;
23 import dagger.functional.producers.multibindings.Qualifiers.ObjCount;
24 import dagger.functional.producers.multibindings.Qualifiers.OnlyProvisionMultibindings;
25 import dagger.functional.producers.multibindings.Qualifiers.PossiblyThrowingMap;
26 import dagger.functional.producers.multibindings.Qualifiers.PossiblyThrowingSet;
27 import dagger.producers.Produced;
28 import dagger.producers.Producer;
29 import dagger.producers.ProductionComponent;
30 import java.util.Map;
31 import java.util.Set;
32 
33 
34 @ProductionComponent(
35   modules = {ExecutorModule.class, MultibindingProducerModule.class, MultibindingModule.class}
36 )
37 interface MultibindingComponent {
strs()38   ListenableFuture<Set<String>> strs();
strCount()39   ListenableFuture<Integer> strCount();
40 
successfulSet()41   ListenableFuture<Set<Produced<String>>> successfulSet();
42 
43   @PossiblyThrowingSet
possiblyThrowingSet()44   ListenableFuture<Set<Produced<String>>> possiblyThrowingSet();
45 
map()46   ListenableFuture<Map<Integer, String>> map();
47 
mapOfProducer()48   ListenableFuture<Map<Integer, Producer<String>>> mapOfProducer();
49 
mapOfProduced()50   ListenableFuture<Map<Integer, Produced<String>>> mapOfProduced();
51 
52   @PossiblyThrowingMap
possiblyThrowingMap()53   ListenableFuture<Map<Integer, String>> possiblyThrowingMap();
54 
55   @PossiblyThrowingMap
possiblyThrowingMapOfProducer()56   ListenableFuture<Map<Integer, Producer<String>>> possiblyThrowingMapOfProducer();
57 
58   @PossiblyThrowingMap
possiblyThrowingMapOfProduced()59   ListenableFuture<Map<Integer, Produced<String>>> possiblyThrowingMapOfProduced();
60 
objs()61   ListenableFuture<Set<Object>> objs();
62 
producedObjs()63   ListenableFuture<Set<Produced<Object>>> producedObjs();
64 
objMap()65   ListenableFuture<Map<Object, Object>> objMap();
66 
objMapOfProduced()67   ListenableFuture<Map<Object, Produced<Object>>> objMapOfProduced();
68 
objMapOfProducer()69   ListenableFuture<Map<Object, Producer<Object>>> objMapOfProducer();
70 
71   @ObjCount
objCount()72   ListenableFuture<Integer> objCount();
73 
74   @EmptyButDeclaredInModuleAndProducerModule
emptyButDeclaredInModuleAndProducerModule()75   ListenableFuture<Map<String, Object>> emptyButDeclaredInModuleAndProducerModule();
76 
77   @EmptyButDeclaredInModule
emptyButDeclaredInModule()78   ListenableFuture<Map<String, Object>> emptyButDeclaredInModule();
79 
80   @OnlyProvisionMultibindings
onlyProvisionMultibindings()81   ListenableFuture<Map<String, Object>> onlyProvisionMultibindings();
82 }
83