Skip to content

Commit

Permalink
Specify treatment of invalid @enhancement and @registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek authored and manovotn committed Dec 7, 2021
1 parent d0020a4 commit 7b085ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
* the method is called once for each field that is declared on each <em>discovered type</em>, as defined
* in {@link jakarta.enterprise.lang.model.declarations.ClassInfo#fields() ClassInfo.fields}.
* <p>
* If the {@code @Enhancement} method doesn't declare any parameter of one of these types,
* or if it declares more than one, the container treats it as a deployment problem.
* <p>
* Additionally, methods annotated {@code @Enhancement} may declare parameters of these types:
* <ul>
* <li>{@link Messages}</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
* Note that interceptors are beans, and {@code InterceptorInfo} is a subtype of {@code BeanInfo}, so if the method
* has a parameter of type {@code BeanInfo}, it will be called for interceptors as well.
* <p>
* If the {@code @Registration} method doesn't declare any parameter of one of these types,
* or if it declares more than one, the container treats it as a deployment problem.
* <p>
* Additionally, methods annotated {@code @Registration} may declare parameters of these types:
* <ul>
* <li>{@link Messages}</li>
Expand Down

0 comments on commit 7b085ac

Please sign in to comment.