Skip to content

Commit

Permalink
clarify beans.xml handling in CDI Lite (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Feb 7, 2022
1 parent 2fdd28f commit 2ae2275
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,9 @@ 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}.

Implementations that do not support {cdi_full} are required to ignore the content of the `beans.xml` file, except for the `bean-discovery-mode` attribute.
Implementations that do not support {cdi_full} are required to detect presence of an archive which contains a `beans.xml` file that has `bean-discovery-mode` attribute set to `all` and treat it as a deployment problem.

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;
Expand Down

0 comments on commit 2ae2275

Please sign in to comment.