Package org.apache.maven.demo.extension
Class EventSpyDemo
- java.lang.Object
-
- org.apache.maven.eventspy.AbstractEventSpy
-
- org.apache.maven.demo.extension.EventSpyDemo
-
- All Implemented Interfaces:
EventSpy
@Component(role=org.apache.maven.eventspy.EventSpy.class, hint="demo") public class EventSpyDemo extends AbstractEventSpy
Event Spy demo (since Maven 3.0.2, with MNG-4936).Notice: event spies are not activated from POM build extensions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
EventSpy.Context
-
-
Constructor Summary
Constructors Constructor Description EventSpyDemo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinit(EventSpy.Context context)voidonEvent(java.lang.Object event)
-
-
-
Method Detail
-
init
public void init(EventSpy.Context context) throws java.lang.Exception
- Specified by:
initin interfaceEventSpy- Overrides:
initin classAbstractEventSpy- Throws:
java.lang.Exception
-
onEvent
public void onEvent(java.lang.Object event) throws java.lang.Exception- Specified by:
onEventin interfaceEventSpy- Overrides:
onEventin classAbstractEventSpy- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfaceEventSpy- Overrides:
closein classAbstractEventSpy- Throws:
java.lang.Exception
-
-