Package org.apache.maven.eventspy
Class AbstractEventSpy
- java.lang.Object
-
- org.apache.maven.eventspy.AbstractEventSpy
-
- All Implemented Interfaces:
EventSpy
- Direct Known Subclasses:
DefaultPluginValidationManager
public abstract class AbstractEventSpy extends java.lang.Object implements EventSpy
A skeleton eventspy that does nothing other than helping implementors.- Since:
- 3.0.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
EventSpy.Context
-
-
Constructor Summary
Constructors Constructor Description AbstractEventSpy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.voidinit(EventSpy.Context context)Initializes the spy.voidonEvent(java.lang.Object event)Notifies the spy of some build event/operation.
-
-
-
Method Detail
-
init
public void init(EventSpy.Context context) throws java.lang.Exception
Description copied from interface:EventSpyInitializes the spy.
-
onEvent
public void onEvent(java.lang.Object event) throws java.lang.ExceptionDescription copied from interface:EventSpyNotifies the spy of some build event/operation.- Specified by:
onEventin interfaceEventSpy- Parameters:
event- The event, nevernull.- Throws:
java.lang.Exception- See Also:
SettingsBuildingRequest,SettingsBuildingResult,MavenExecutionRequest,MavenExecutionResult,DependencyResolutionRequest,DependencyResolutionResult,ExecutionEvent,RepositoryEvent
-
-