From 1840939753dee2af56cb9a8698ce4dc00c81e977 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Tue, 14 Sep 2021 10:48:50 +0200 Subject: [PATCH] Align wording in unsatisfied and ambig dependencies with that in ambiguous names. --- spec/src/main/asciidoc/core/injectionandresolution.asciidoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/src/main/asciidoc/core/injectionandresolution.asciidoc b/spec/src/main/asciidoc/core/injectionandresolution.asciidoc index 81783a62..05bb2fb1 100644 --- a/spec/src/main/asciidoc/core/injectionandresolution.asciidoc +++ b/spec/src/main/asciidoc/core/injectionandresolution.asciidoc @@ -117,8 +117,7 @@ An _unsatisfied dependency_ exists at an injection point when no bean is eligibl An _ambiguous dependency_ exists at an injection point when multiple beans are eligible for injection to the injection point. When an ambiguous dependency exists, the container attempts to resolve the ambiguity. -The container eliminates all eligible beans that are not alternatives, except for producer methods and fields of beans that are alternatives. -// TODO maybe mention that the alternatives must be selected, like we do it in <>? +The container eliminates all eligible beans that are not alternatives selected for the application, except for producer methods and fields of beans that are alternatives. If: * there is exactly one bean remaining, the container will select this bean, and the ambiguous dependency is called resolvable.