Skip to content

Commit

Permalink
CDI-694 Make an observer that uses both @observes and @ObservesAsync …
Browse files Browse the repository at this point in the history
…forbidden (jakartaee#384)
  • Loading branch information
antoinesd committed Mar 21, 2017
1 parent bd787e4 commit 26e1f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/src/main/asciidoc/core/events.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ public void asyncAfterLogin(@ObservesAsync LoggedInEvent event) { ... }

If a method has more than one parameter annotated `@Observes` or `@ObservesAsync`, the container automatically detects the problem and treats it as a definition error.

If a method has a parameter annotated `@Observes` and `@ObservesAsync`, the container automatically detects the problem and treats it as a definition error.

Observed event qualifiers may be declared by annotating the event parameter:

[source, java]
Expand Down

0 comments on commit 26e1f33

Please sign in to comment.