org.apache.tamaya.events.spi

## Interface ConfigEventSpi

- All Known Implementing Classes:
    DefaultConfigEventSpi

      public interface ConfigEventSpi

  SPI interface to implement the `ConfigEvent` singleton. Implementations of this interface must be registered with the current `ServiceContext`, by default this equals to registering it with `ServiceLoader`. Add `Priority` annotations for overriding (higher values overriden lower values).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> void` | `addListener(ConfigEventListener<T> l)` Add a listener for observing events.
    `<T> void` | `fireEvent(T event, Class<T> eventType)` Publishes an event to all interested listeners.
    `<T> void` | `removeListener(ConfigEventListener<T> l)` Removes a listener for observing events.

- - ### Method Detail

    - #### addListener

          <T> void addListener(ConfigEventListener<T> l)

      Add a listener for observing events. References of this component to the listeners must be managed as weak references.
      Parameters:
        `l` - the listener not null.

    - #### removeListener

          <T> void removeListener(ConfigEventListener<T> l)

      Removes a listener for observing events.
      Parameters:
        `l` - the listener not null.

    - #### fireEvent

          <T> void fireEvent(T event,
                             Class<T> eventType)

      Publishes an event to all interested listeners.
      Parameters:
        `event` - the event, not null.
        `eventType` - the event type.

Copyright © 2014–2015 Apache Software Foundation. All rights reserved.