Interface RegistryChangeListener<E>

Type Parameters:
E - type of the element in the registry
All Known Subinterfaces:
ItemRegistryChangeListener, ThingRegistryChangeListener
All Known Implementing Classes:
RegistryChangedRunnableListener, ScriptItemRefresher, ScriptTransformationService

@NonNullByDefault public interface RegistryChangeListener<E>
RegistryChangeListener can be added to Registry services, to listen for changes.
Author:
Dennis Nobel - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    added(E element)
    Notifies the listener that a single element has been added.
    void
    removed(E element)
    Notifies the listener that a single element has been removed.
    void
    updated(E oldElement, E element)
    Notifies the listener that a single element has been updated.
  • Method Details

    • added

      void added(E element)
      Notifies the listener that a single element has been added.
      Parameters:
      element - the element that has been added
    • removed

      void removed(E element)
      Notifies the listener that a single element has been removed.
      Parameters:
      element - the element that has been removed
    • updated

      void updated(E oldElement, E element)
      Notifies the listener that a single element has been updated.
      Parameters:
      element - the new element
      oldElement - the element that has been updated