Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.01 KB

events_full.asciidoc

File metadata and controls

35 lines (18 loc) · 1.01 KB

Events in {cdi_full}

Firing events in {cdi_full}

The built-in Event in {cdi_full}

In addition to rules defined in [builtin_event], the following rule applies.

The built-in implementation must be a passivation capable dependency, as defined in [passivation_capable_dependency].

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.