@@ -98,6 +98,36 @@ static Builder newBuilder(List<SuppliedBean> suppliedBeans, List<EnrichBean> enr
98
98
*/
99
99
void addInjector (Consumer <Builder > injector );
100
100
101
+ /**
102
+ * Get a dependency.
103
+ */
104
+ <T > T get (Class <T > cls );
105
+
106
+ /**
107
+ * Get a named dependency.
108
+ */
109
+ <T > T get (Class <T > cls , String name );
110
+
111
+ /**
112
+ * Get a dependency.
113
+ */
114
+ <T > T get (Type cls );
115
+
116
+ /**
117
+ * Get a named dependency.
118
+ */
119
+ <T > T get (Type cls , String name );
120
+
121
+ /**
122
+ * Get an optional dependency.
123
+ */
124
+ <T > Optional <T > getOptional (Class <T > cls );
125
+
126
+ /**
127
+ * Get an optional named dependency.
128
+ */
129
+ <T > Optional <T > getOptional (Class <T > cls , String name );
130
+
101
131
/**
102
132
* Get an optional dependency.
103
133
*/
@@ -108,6 +138,16 @@ static Builder newBuilder(List<SuppliedBean> suppliedBeans, List<EnrichBean> enr
108
138
*/
109
139
<T > Optional <T > getOptional (Type cls , String name );
110
140
141
+ /**
142
+ * Get an optional dependency potentially returning null.
143
+ */
144
+ <T > T getNullable (Class <T > cls );
145
+
146
+ /**
147
+ * Get an optional named dependency potentially returning null.
148
+ */
149
+ <T > T getNullable (Class <T > cls , String name );
150
+
111
151
/**
112
152
* Get an optional dependency potentially returning null.
113
153
*/
@@ -118,6 +158,16 @@ static Builder newBuilder(List<SuppliedBean> suppliedBeans, List<EnrichBean> enr
118
158
*/
119
159
<T > T getNullable (Type cls , String name );
120
160
161
+ /**
162
+ * Return Provider of T given the type.
163
+ */
164
+ <T > Provider <T > getProvider (Class <T > cls );
165
+
166
+ /**
167
+ * Return Provider of T given the type and name.
168
+ */
169
+ <T > Provider <T > getProvider (Class <T > cls , String name );
170
+
121
171
/**
122
172
* Return Provider of T given the type.
123
173
*/
@@ -137,29 +187,34 @@ static Builder newBuilder(List<SuppliedBean> suppliedBeans, List<EnrichBean> enr
137
187
<T > Provider <T > getProviderFor (Class <?> cls , Type type );
138
188
139
189
/**
140
- * Get a dependency .
190
+ * Get a list of dependencies for the type .
141
191
*/
142
- <T > T get ( Type cls );
192
+ <T > List < T > list ( Class < T > type );
143
193
144
194
/**
145
- * Get a named dependency .
195
+ * Get a list of dependencies for the type .
146
196
*/
147
- <T > T get (Type cls , String name );
197
+ <T > List < T > list (Type type );
148
198
149
199
/**
150
- * Get a list of dependencies for the type.
200
+ * Get a set of dependencies for the type.
151
201
*/
152
- <T > List <T > list ( Type interfaceType );
202
+ <T > Set <T > set ( Class < T > type );
153
203
154
204
/**
155
205
* Get a set of dependencies for the type.
156
206
*/
157
- <T > Set <T > set (Type interfaceType );
207
+ <T > Set <T > set (Type type );
208
+
209
+ /**
210
+ * Return a map of dependencies keyed by qualifier name.
211
+ */
212
+ <T > Map <String , T > map (Class <T > type );
158
213
159
214
/**
160
215
* Return a map of dependencies keyed by qualifier name.
161
216
*/
162
- <T > Map <String , T > map (Type interfaceType );
217
+ <T > Map <String , T > map (Type type );
163
218
164
219
/**
165
220
* Build and return the bean scope.
0 commit comments