Class EventListener

  • All Implemented Interfaces:
    org.apache.maven.eventspy.EventSpy

    @Named
    @Singleton
    public class EventListener
    extends java.lang.Object
    implements org.apache.maven.eventspy.EventSpy
    Listen to all maven events and forward them to the endpoint
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy

        org.apache.maven.eventspy.EventSpy.Context
    • Constructor Summary

      Constructors 
      Constructor Description
      EventListener​(BuildConnection connection)
      Creates endpoint for the given connection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void init​(org.apache.maven.eventspy.EventSpy.Context context)  
      void onEvent​(java.lang.Object event)  
      • Methods inherited from class java.lang.Object

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

      • EventListener

        @Inject
        public EventListener​(BuildConnection connection)
        Creates endpoint for the given connection
        Parameters:
        connection - injected
    • Method Detail

      • init

        public void init​(org.apache.maven.eventspy.EventSpy.Context context)
                  throws java.lang.Exception
        Specified by:
        init in interface org.apache.maven.eventspy.EventSpy
        Throws:
        java.lang.Exception
      • onEvent

        public void onEvent​(java.lang.Object event)
                     throws java.lang.Exception
        Specified by:
        onEvent in interface org.apache.maven.eventspy.EventSpy
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface org.apache.maven.eventspy.EventSpy
        Throws:
        java.lang.Exception