EventListener

public interface EventListener

Provides the base model interface for event listeners. In case of listeners using annotations, proxies implementing this interface are created, so there is no actual need to implement this interface when creating listeners.

Methods

getIdentifier

String getIdentifier()

Returns the unique identifier/key for the given listener object. The identifier is used when messages are destined for this specific listener type.

Returns:the unique listener identifier/key

handle

void handle(MotechEvent event)

Handles the particular event that has been received

Parameters:
  • event – the event that occurred.