|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventSpy
A core extension to monitor Maven's execution. Typically, such an extension gets loaded into Maven by specifying the
system property maven.ext.class.path
on the command line. As soon as dependency injection is setup, Maven
looks up all implementators of this interface and calls their init(Context)
method. Note:
Implementors are strongly advised to inherit from AbstractEventSpy
instead of directly implementing this
interface.
Nested Class Summary | |
---|---|
static interface |
EventSpy.Context
|
Method Summary | |
---|---|
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 |
---|
void init(EventSpy.Context context) throws Exception
context
- The event spy context, never null
.
Exception
void onEvent(Object event) throws Exception
event
- The event, never null
.
Exception
SettingsBuildingRequest
,
SettingsBuildingResult
,
MavenExecutionRequest
,
MavenExecutionResult
,
DependencyResolutionRequest
,
DependencyResolutionResult
,
ExecutionEvent
,
RepositoryEvent
void close() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |