Module jakarta.cdi

Interface ObserverMethod<T>

Type Parameters:
T - the event type
All Superinterfaces:
Prioritized

public interface ObserverMethod<T> extends Prioritized

Represents an observer method of an enabled bean. Defines everything the container needs to know about an observer method.

If a custom implementation of this interface does not override either notify(Object) or notify(EventContext), the container automatically detects the problem and treats it as a definition error.