- Type Parameters:
T- the observed event type of the synthetic observer
public interface SyntheticObserver<T>The event notification function for a synthetic observer defined by
SyntheticObserverBuilder. CDI container will create an instance of the event notification function every time when it needs to notify the synthetic observer. Implementations must be
publicclasses with a
publiczero-parameter constructor; they must not be beans.
void observe(EventContext<T> event, Parameters params) throws ExceptionConsumes an event. The
EventContextprovides access to the event payload, as well as the
The parameter map contains the same values that were passed to the
SyntheticObserverBuilderthat defined the synthetic observer.