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

Wording improvements #670

Merged
merged 4 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* </pre>
*
* @author Matej Novotny
* @since 4.0
*/
public interface BeanContainer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public interface ObserverMethod<T> extends Prioritized {
* </p>
*
* @return the declaring {@linkplain Bean bean}
* @since 4.0
*/
default Bean<?> getDeclaringBean() {
return null;
Expand Down
4 changes: 2 additions & 2 deletions spec/src/main/asciidoc/core/events.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ If the runtime type of the event object contains an unresolvable type variable,

==== Assignability of type variables, raw and parameterized types

An event type is considered assignable to a type variable if the event type is assignable to the upper bound, if any.
An event type is considered assignable to an observed event type that is a type variable if the event type is assignable to the upper bound of the type variable, if any.

A raw event type is considered assignable to a parameterized observed event type if the raw types are identical and all type parameters of the required type are either unbounded type variables or `java.lang.Object`.
A raw event type is considered assignable to a parameterized observed event type if the raw types are identical and all type parameters of the observed event type are either unbounded type variables or `java.lang.Object`.

A parameterized event type is considered assignable to a raw observed event type if the raw types are identical.

Expand Down
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/core/implementation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ If a method has more than one parameter annotated `@Disposes`, the container aut
If a disposer method is annotated `@Produces` or `@Inject`, has a parameter annotated `@Observes` or has a parameter annotated `@ObservesAsync`, the container automatically detects the problem and treats it as a definition error.

Interceptors may not declare disposer methods.
If an interceptor has a method annotated `@Disposes`, the container automatically detects the problem and treats it as a definition error.
If an interceptor has a method that has a parameter annotated `@Disposes`, the container automatically detects the problem and treats it as a definition error.

In addition to the disposed parameter, a disposer method may declare additional parameters, which may also specify qualifiers.
These additional parameters are injection points.
Expand Down
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/core/inheritance_full.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class MockAsynchronousService extends AsynchronousService {
}
----

When an enabled bean, as defined in <<enablement>>, specializes a second bean, we can be certain that the second bean is never instantiated or called by the container.
When an enabled bean, as defined in <<enablement_full>>, specializes a second bean, we can be certain that the second bean is never instantiated or called by the container.
Even if the second bean defines a producer or observer method, the method will never be called.

[[direct_and_indirect_specialization]]
Expand Down