Class RepositoryEvent<T extends RepositoryListener>

    • Constructor Detail

      • RepositoryEvent

        public RepositoryEvent()
    • Method Detail

      • setRepository

        public void setRepository​(Repository r)
        Set the repository this event occurred on.

        This method should only be invoked once on each event object, and is automatically set by Repository.fireEvent(RepositoryEvent).

        Parameters:
        r - the repository.
      • getRepository

        public Repository getRepository()
        Get the repository that was changed
        Returns:
        the repository that was changed
      • getListenerType

        public abstract Class<T> getListenerType()
        Get type of listener this event dispatches to
        Returns:
        type of listener this event dispatches to
      • dispatch

        public abstract void dispatch​(T listener)
        Dispatch this event to the given listener.
        Parameters:
        listener - listener that wants this event.