Constructor-based DI asserts that the class cannot be instantiated without the supplied dependency. This method enforces the requirement whether or not you use Spring, and therefore is container-agnostic. Also, Spring will throw up a Warning flag if you just annotate the prop with @Inject
|
|
||
108 |
|
108 |
|
109 |
|
109 |
|
110 |
|
110 |
|
111 |
|
|
|
112 |
|
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
113 |
|
115 |
|
114 |
|
116 |
|
115 |
|
117 |
|
|
|
||
273 |
|
275 |
|
274 |
|
276 |
|
275 |
|
277 |
|
276 |
|
|
|
|
278 |
|
|
277 |
|
279 |
|
|
280 |
|
|
|
281 |
|
|
|
282 |
|
|
|
283 |
|
|
|
284 |
|
|
278 |
|
285 |
|
279 |
|
286 |
|
280 |
|
287 |
|
|
|
||
414 |
|
421 |
|
415 |
|
422 |
|
416 |
|
423 |
|
417 |
|
|
|
|
424 |
|
|
418 |
|
425 |
|
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
|
|
419 |
|
431 |
|
420 |
|
432 |
|
421 |
|
433 |
|