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

Change definitons of explicit/implicit archive, add notion about back… #516

Merged
merged 1 commit into from
Aug 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
10 changes: 7 additions & 3 deletions spec/src/main/asciidoc/core/packagingdeployment.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ is not a bean archive.
An _explicit bean archive_ is an archive which contains a `beans.xml` file:

* with a version number of `1.1` (or later), with the `bean-discovery-mode` of `all`, or,
* with no version number, or,
* that is an empty file.
* with no version number.

An _implicit bean archive_ is any other archive which contains one or more bean classes with a bean defining annotation as defined in <<bean_defining_annotations>>.
An _implicit bean archive_ is:

* an archive which contains a `beans.xml` file that is empty, or,
* any other archive which contains one or more bean classes with a bean defining annotation as defined in <<bean_defining_annotations>>.

When determining which archives are bean archives, the container must consider:

Expand All @@ -48,6 +50,8 @@ The `beans.xml` file must be named:

* `META-INF/beans.xml`.

For compatibility with CDI versions prior to 4.0, {cdi_full} products must contain an option that causes an archive with empty beans.xml to be considered an explicit bean archive.

The container searches for beans in all bean archives in the application classpath.

If a bean class is deployed in two different bean archives, non-portable behavior results.
Expand Down