Class EventRegistry

java.lang.Object
javacardx.framework.event.EventRegistry

public abstract class EventRegistry extends Object
An event registry instance is used by applications to register or unregister event listeners for a particular source of events.
Since:
3.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the event registry for the specified source of events or return null if source is unknown or no registry exists for this source.
    void
    Register an event listener for this source of events.
    void
    Unregister the specified event listener.

    Methods inherited from class Object

    equals
    Modifier and Type
    Method
    Description
    boolean
    Compares two Objects for equality.
  • Method Details

    • getEventRegistry

      public static EventRegistry getEventRegistry(EventSource source)
      Retrieves the event registry for the specified source of events or return null if source is unknown or no registry exists for this source.
      Parameters:
      source - the source of events
      Returns:
      the EventRegistry instance for the specified source of events
    • register

      public void register(EventListener listener)
      Register an event listener for this source of events.
      Parameters:
      listener - the event listener to register
    • unregister

      public void unregister(EventListener listener)
      Unregister the specified event listener.
      Parameters:
      listener - the event listener to unregister