Interface PrincipesEventListener<T extends PrincipesEvent<?>>

Type Parameters:
T - The type of event this listener handles, extending PrincipesEvent.

public interface PrincipesEventListener<T extends PrincipesEvent<?>>
Represents a listener interface in the Principes event system.

Implementations of this interface are used to define the logic for handling specific types of events published within the system. Subscribing these listeners to the PrincipesEventBus allows them to react to specific events as they are published.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(T event)
    Handles an event of the specified type.
  • Method Details

    • onEvent

      void onEvent(T event)
      Handles an event of the specified type. This method is invoked when an event of type T is published and the listener is subscribed to that event type on the PrincipesEventBus.
      Parameters:
      event - The event instance to be processed, containing its data and type.