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 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 void
close()
Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.void
init(EventSpy.Context context)
Initializes the spy.void
onEvent(Object event)
Notifies the spy of some build event/operation.
-
-
-
Method Detail
-
init
public void init(EventSpy.Context context) throws Exception
Description copied from interface:EventSpy
Initializes the spy.
-
onEvent
public void onEvent(Object event) throws Exception
Description copied from interface:EventSpy
Notifies the spy of some build event/operation.- Specified by:
onEvent
in interfaceEventSpy
- Parameters:
event
- The event, nevernull
.- Throws:
Exception
- See Also:
SettingsBuildingRequest
,SettingsBuildingResult
,MavenExecutionRequest
,MavenExecutionResult
,DependencyResolutionRequest
,DependencyResolutionResult
,ExecutionEvent
,RepositoryEvent
-
-