Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recommendation for bean archive portability between Lite and Full #552

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions spec/src/main/asciidoc/core/packagingdeployment.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ An _implicit bean archive_ is:
Any other archive which contains a `beans.xml` file is not portable in {cdi_lite}.
More kinds of bean archives exist in {cdi_full}.

To ensure portability between {cdi_lite} and {cdi_full}, applications are encouraged to:

* always add a `beans.xml` file to an archive which contains classes with bean defining annotations;
* never add classes with bean defining annotations to an archive without `beans.xml`.

When determining which archives are bean archives, the container must consider all archives that constitute the application.
Implementations are encouraged to document how the candidate archives are found in more detail.

Expand Down