Interface RegistryHook<E extends Identifiable<?>>


  • public interface RegistryHook<E extends Identifiable<?>>
    A listener to be informed before entities are added respectively after they are removed.
    Author:
    Simon Kaufmann - Initial contribution
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterRemoving​(E element)
      Notifies the listener that an element was removed from the registry.
      void beforeAdding​(E element)
      Notifies the listener that an element is going to be added to the registry.
    • Method Detail

      • beforeAdding

        void beforeAdding​(E element)
        Notifies the listener that an element is going to be added to the registry.
        Parameters:
        element - the element to be added
      • afterRemoving

        void afterRemoving​(E element)
        Notifies the listener that an element was removed from the registry.
        Parameters:
        element - the element that was removed