Class AbstractEventSpy

  • All Implemented Interfaces:
    EventSpy

    public abstract class AbstractEventSpy
    extends java.lang.Object
    implements EventSpy
    A skeleton eventspy that does nothing other than helping implementors.
    Since:
    3.0.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.
      void init​(EventSpy.Context context)
      Initializes the spy.
      void onEvent​(java.lang.Object event)
      Notifies the spy of some build event/operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractEventSpy

        public AbstractEventSpy()
    • Method Detail

      • init

        public void init​(EventSpy.Context context)
                  throws java.lang.Exception
        Description copied from interface: EventSpy
        Initializes the spy.
        Specified by:
        init in interface EventSpy
        Parameters:
        context - The event spy context, never null.
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Description copied from interface: EventSpy
        Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.
        Specified by:
        close in interface EventSpy
        Throws:
        java.lang.Exception