Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 709 Bytes

events_full.asciidoc

File metadata and controls

22 lines (12 loc) · 709 Bytes

Events in {cdi_full}

Observer methods in {cdi_full}

In addition to rules defined in [observer_methods], the following rules apply.

An observer method is a non-abstract method of a portable extension, as defined in [init_events].

A portable extension may declare multiple observer methods.

Declaring an observer method in {cdi_full}

In addition to rules defined in [observes], the following rules apply.

Decorators may not declare observer methods. If a decorator has a method with a parameter annotated @Observes or @ObservesAsync, the container automatically detects the problem and treats it as a definition error.