java.lang.Object
io.helidon.service.registry.Event
Injection event types.
To publish an event, inject an instance of Event.Emitter
.
To receive events, implement a method (at least package private) with the event object as a parameter, annotated with
Event.Observer
. The method can have any name, must be void
,
and have a single parameter that defines the event type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
A service method that is an event observer.static interface
To publish an event, simply inject an instance of this type (correctly typed with your event object) into your service, and callEvent.Emitter.emit(Object, Qualifier...)
on it when needed.static @interface
A service method that is an event observer. -
Method Summary