Skip to content

Commit

Permalink
Add a recommendation for bean archive portability between Lite and Full
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek authored and manovotn committed Oct 27, 2021
1 parent aa95db3 commit e53493f
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit e53493f

Please sign in to comment.