Interface SyntheticObserver<T>
- 
- Type Parameters:
- T- the observed event type of the synthetic observer
 
 public interface SyntheticObserver<T>The event notification function for a synthetic observer defined bySyntheticObserverBuilder. CDI container will create an instance of the event notification function every time when it needs to notify the synthetic observer. Implementations must bepublicclasses with apubliczero-parameter constructor; they must not be beans.- Since:
- 4.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidobserve(EventContext<T> event, Parameters params)Consumes an event.
 
- 
- 
- 
Method Detail- 
observevoid observe(EventContext<T> event, Parameters params) throws Exception Consumes an event. TheEventContextprovides access to the event payload, as well as theEventMetadata.The parameter map contains the same values that were passed to the SyntheticObserverBuilderthat defined the synthetic observer.- Parameters:
- event- the event context, never- null
- params- the parameter map, never- null
- Throws:
- Exception- checked exception will be wrapped and rethrown as an- ObserverException
 
 
- 
 
-