Module no.ntnu.principes
Package no.ntnu.principes.event
Interface PrincipesEventListener<T extends PrincipesEvent<?>>
- Type Parameters:
T- The type of event this listener handles, extendingPrincipesEvent.
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
-
Method Details
-
onEvent
Handles an event of the specified type. This method is invoked when an event of typeTis published and the listener is subscribed to that event type on thePrincipesEventBus.- Parameters:
event- The event instance to be processed, containing its data and type.
-