Skip to content

Commit

Permalink
Improve precision of BeanContainer.isMatchingEvent() javadoc, to be s…
Browse files Browse the repository at this point in the history
…quashed before merging
  • Loading branch information
Ladicek committed Feb 5, 2024
1 parent 0381a35 commit 4c6080f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ boolean isMatchingBean(Set<Type> beanTypes, Set<Annotation> beanQualifiers, Type
* match an observer method with given observed event type and observed event qualifiers,
* {@code false} otherwise.
* <p>
* In line with the specification for events and observer resolution, the event type used is
* the {@code specifiedType} and the set of event qualifiers used is a set that contains all
* {@code specifiedQualifiers} and {@code @Any}. Also, this method returns {@code true} when
* {@code observedEventQualifiers} contains {@code @Default} and the set of {@code specifiedQualifiers}
* is empty.
* For the purpose of observer resolution, the {@code specifiedType} is used as the event type
* directly (because there is no event object in this API) and {@code specifiedQualifiers} are
* used as event qualifiers. In line with the specification for events and observer resolution,
* the set of event qualifiers is considered to always include {@code @Any}. Also, this method
* returns {@code true} when the types match, the set of {@code observedEventQualifiers}
* contains {@code @Default} and the set of {@code specifiedQualifiers} is empty.
* <p>
* Throws {@link IllegalArgumentException} if any of the arguments is {@code null},
* if the {@code specifiedType} contains a type variable, or if any of the {@code specifiedQualifiers}
Expand Down

0 comments on commit 4c6080f

Please sign in to comment.