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 java.lang.Object implements org.apache.maven.eventspy.EventSpyListen to all maven events and forward them to the endpoint
-
-
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 voidclose()voidinit(org.apache.maven.eventspy.EventSpy.Context context)voidonEvent(java.lang.Object event)
-
-
-
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:
initin interfaceorg.apache.maven.eventspy.EventSpy- Throws:
java.lang.Exception
-
onEvent
public void onEvent(java.lang.Object event) throws java.lang.Exception- Specified by:
onEventin interfaceorg.apache.maven.eventspy.EventSpy- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfaceorg.apache.maven.eventspy.EventSpy- Throws:
java.lang.Exception
-
-