Does people change the setting or bother to choose anything different other than the default?
Does people understand the consequence of choosing a different value for bean discovery mode?
I wonder whether displaying beans.xml add more confusion or white noise to the generator. Should we choose a sensible default and stay with it and remove the beans.xml entry?
The response so far is to remove the entry of beans.xml on the starter and give it a default for beans.xml entry.
As for default value for the beans.xml entry, there are two possible suggestions:
Option A: Don't generate beans.xml
cons: Any newly added classes need to have bean-defining annotations. Otherwise, the injection will not work.
pro: less files, bean-defining annotations are carefully considered and added to a particular resource.
Option B: Generate beans.xml with bean discovery mode with "all"
cons: more files are generated and the relevant scopes might not be considered.
pros: All injection will work.
I would like to bring this issue to this mailing list to get more votes. Please voice your opinion on:
1. keep beans.xml? Yes or No
2. If the answer is No, should the default is option A or option B?
Thanks
Emily
I felt the same way the first time I had a look at the website. All the rest of the options are extremely high-level (what java version, what technologies do you want to use, what app server).
The beans.xml is a very low-level detail in comparison to the other items, and feels out of place.
+1 for just giving the user the default
For somebody that is using the starter in the first place, the prompt for the beans.xml is overkill and confusing. Default it and skip the the prompt.
1. keep beans.xml? Yes or No
2. If the answer is No, should the default is option A or option B?
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAP7PoCetUu4vnR1yRbddcYvvfxxxi0Sgn6arPVYPpF8snf2s4A%40mail.gmail.com.
I would not generate an empty one as people then needs to lookup the XML namespace in case they want to define something.
My preference is also to have the annotated scope as it more optimal (but developer needs to specify a scope and it requires the developer to think what is the best solution)
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/52217291-2d92-4170-bf5d-f810cbbe7712%40googlegroups.com.
1) No - don't offer an option to generate beans.xml
2) Generate beans.xml with discovery "all" and add a comment that the file can be simply deleted to get "annotated" discovery
This is easy for newcomers, educates newcomers, also easy to switch to "annontated" or further configure.