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 void
close()
void
init(EventSpy.Context context)
void
onEvent(java.lang.Object event)
-
-
-
Method Detail
-
init
public void init(EventSpy.Context context) throws java.lang.Exception
- Specified by:
init
in interfaceEventSpy
- Overrides:
init
in classAbstractEventSpy
- Throws:
java.lang.Exception
-
onEvent
public void onEvent(java.lang.Object event) throws java.lang.Exception
- Specified by:
onEvent
in interfaceEventSpy
- Overrides:
onEvent
in classAbstractEventSpy
- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfaceEventSpy
- Overrides:
close
in classAbstractEventSpy
- Throws:
java.lang.Exception
-
-