Class CascadedStoreEvent.ParentListener<E extends CascadedStoreEvent<E>>

java.lang.Object
org.apache.sis.storage.event.CascadedStoreEvent.ParentListener<E>
All Implemented Interfaces:
EventListener, StoreListener<E>
Enclosing class:
CascadedStoreEvent<E extends CascadedStoreEvent<E>>

static final class CascadedStoreEvent.ParentListener<E extends CascadedStoreEvent<E>> extends Object implements StoreListener<E>
A listener to register on the parent of a resource for cascading an event to the children.
See Also:
  • Field Details

  • Constructor Details

    • ParentListener

      ParentListener(Class<E> eventType, StoreListeners parent, StoreListeners listeners)
      Creates a new listener to be registered on the parent of the given set of listeners.
      Parameters:
      eventType - the type of event to listen.
      parent - the parent resource to listen to.
      listeners - the child set of listeners.
  • Method Details

    • eventOccured

      public void eventOccured(E event)
      Invoked when an event is fired on a parent resource. This method causes similar event to be fired on children resources.
      Specified by:
      eventOccured in interface StoreListener<E extends CascadedStoreEvent<E>>
      Parameters:
      event - description of the change or warning that occurred in a resource. Shall not be null.