Skip to content

Commit

Permalink
language fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jouni committed Jul 11, 2024
1 parent 47a7b50 commit ca64fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/upgrading/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ Before migrating, find the corresponding version of the Jakarta EE 10-compatible

CDI 4.0 specification -- which is part of Jakarta EE 10 -- changes the default value of the `bean-discovery-mode` attribute to `annotated` and uses `annotated` as the default when an empty [filename]`beans.xml` file is found in a deployment. See https://jakarta.ee/specifications/cdi/4.0/[Jakarta CDI page] for more information.

To let the container scan and manage Vaadin components and views when the `bean-discovery-mode` attribute is not defined and the default is used, you should annotate Vaadin components and views with the `com.vaadin.cdi.annotation.CdiComponent` to allow Vaadin them to be detected correctly as CDI beans.
To let the container scan and manage Vaadin components and views when the `bean-discovery-mode` attribute is not defined and the default is used, you should annotate Vaadin components and views with the `com.vaadin.cdi.annotation.CdiComponent` to allow them to be detected correctly as CDI beans.

As an alternative, you can set `bean-discovery-mode=all` in the [filename]`beans.xml` file if it's applicable to your project. However, this isn't recommended.

Expand Down

0 comments on commit ca64fc2

Please sign in to comment.