Class EventListener

java.lang.Object
org.codehaus.plexus.build.connect.EventListener
All Implemented Interfaces:
org.apache.maven.eventspy.EventSpy

@Named @Singleton public class EventListener extends 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
    Creates endpoint for the given connection
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    init(org.apache.maven.eventspy.EventSpy.Context context)
     
    void
    onEvent(Object event)
     

    Methods inherited from class Object

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

    • EventListener

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

    • init

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

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

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