org.apache.maven.eventspy
Interface EventSpy
- All Known Implementing Classes:
- AbstractEventSpy
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.
init
void init(EventSpy.Context context)
throws Exception
- Throws:
Exception
onEvent
void onEvent(Object event)
throws Exception
- Throws:
Exception
close
void close()
throws Exception
- Throws:
Exception
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.