dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
857 stars 467 forks source link

Weld Container should auto detect any annotated bean #30187

Open fabrizzio-dotCMS opened 2 weeks ago

fabrizzio-dotCMS commented 2 weeks ago

Parent Issue

https://github.com/dotCMS/core/issues/29552

Task

We have enabled CDI through https://github.com/dotCMS/core/issues/29552 Currently, we depend on the CDIUtils to create an entry point to instantiate all Annotated Beans But we have run into a case that must be supported. Let's say we have a @Inject into a resource DotRestApplication must be capable of detecting any annotated bean and taking care of the injection itself Therefore we need to iterate over this once again and solve this problem

Proposed Objective

Same as Parent Issue

Proposed Priority

Same as Parent Issue

Acceptance Criteria

Any Resource discovered by DotRestApplication containing a @Inject must be capable of finding and injecting any Beans annotated with @ApplicationScope

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

github-actions[bot] commented 17 hours ago

PRs: