Details
-
Feature Request
-
Resolution: Done
-
Major
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
A new Assignable Beans dialogue has been implemented. The dialogue presents all beans that can be assigned to a particular annotation. Beans that are not able to be assigned appear greyed out and have the option to be hidden.
-
Documented as Feature Request
Description
Let's see what we have right now.
If there is an ambiguous injection point and user Ctrl+Click on it then we show two hyperlinks. One of thous hyperlinks is Show All Eligible Beans... that is not quite accurate, btw. The the other one is Open @Inject Bean <Type> which opens a random bean from all the resolved beans. If we have more than one eligible bean than we try to resolve them. If we still have a few "resolved" beans then we mark an injection as ambiguous and our OpenOn dialog uses a random bean from this resolved set.
How it should work
First at all let's rename "Show All Eligible Beans..." to "Show All Assignable Beans..." since we show all the assignable beans (beans which match the type and the qualifiers) but not eligible (assignable & enabled). For instance a set of assignable beans includes decorators and interceptors.
If there is the only one bean is to injected then JBT will suggest to open this bean. But if there are many assignable beans (even if they can be resolved to the only one) then JBT will suggest to show all the assignable beans:
Where Show All Assignable Beans... opens a dialog with all the beans which match the injection type and qualifiers:
The beans should be filtered by name. Also it's possible to hide unavailable beans (shown by default). Show/hide menu is shown by default but can be hidden in dialog settings:
Attachments
Issue Links
- blocks
-
JBIDE-9390 Can't open dialog "Show All Eligible Beans..."
- Closed