Package org.apache.maven.eventspy
Interface EventSpy
- All Known Implementing Classes:
- AbstractEventSpy,- DefaultPluginValidationManager,- EventSpyImpl
public interface EventSpy
A core extension to monitor Maven's execution. Typically, such an extension gets loaded into Maven by specifying the
 property 
maven.ext.class.path on the command line. As soon as dependency injection is set up, Maven
 looks up all implementers of this interface and calls their init(Context) method. Note:
 Implementors are strongly advised to inherit from AbstractEventSpy instead of directly implementing this
 interface.- Since:
- 3.0.2
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.voidinit(EventSpy.Context context) Initializes the spy.voidNotifies the spy of some build event/operation.
- 
Method Details- 
initInitializes the spy.- Parameters:
- context- The event spy context, never- null.
- Throws:
- Exception
 
- 
onEventNotifies the spy of some build event/operation.- Parameters:
- event- The event, never- null.
- Throws:
- Exception
- See Also:
 
- 
closeNotifies the spy of Maven's termination, allowing it to free any resources allocated by it.- Throws:
- Exception
 
 
-