public interface EventSpy
maven.ext.class.path
on the command line. As soon as dependency injection is setup, 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.Modifier and Type | Interface and Description |
---|---|
static interface |
EventSpy.Context |
Modifier and Type | Method and 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(java.lang.Object event)
Notifies the spy of some build event/operation.
|
void init(EventSpy.Context context) throws java.lang.Exception
context
- The event spy context, never null
.java.lang.Exception
void onEvent(java.lang.Object event) throws java.lang.Exception
event
- The event, never null
.java.lang.Exception
SettingsBuildingRequest
,
SettingsBuildingResult
,
MavenExecutionRequest
,
MavenExecutionResult
,
DependencyResolutionRequest
,
DependencyResolutionResult
,
ExecutionEvent
,
RepositoryEvent
void close() throws java.lang.Exception
java.lang.Exception