mirror of https://github.com/apache/maven.git
o Extended API docs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1069983 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74840dab1a
commit
3d89ba7509
|
@ -34,16 +34,42 @@ public interface EventSpy
|
||||||
interface Context
|
interface Context
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets key-value pairs providing information about the Maven runtime.
|
||||||
|
*
|
||||||
|
* @return The key-value pairs, never {@code null}.
|
||||||
|
*/
|
||||||
Map<String, Object> getData();
|
Map<String, Object> getData();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes the spy.
|
||||||
|
*
|
||||||
|
* @param context The event spy context, never {@code null}.
|
||||||
|
*/
|
||||||
void init( Context context )
|
void init( Context context )
|
||||||
throws Exception;
|
throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notifies the spy of some build event/operation.
|
||||||
|
*
|
||||||
|
* @param event The event, never {@@code null}.
|
||||||
|
* @see org.apache.maven.settings.building.SettingsBuildingRequest
|
||||||
|
* @see org.apache.maven.settings.building.SettingsBuildingResult
|
||||||
|
* @see org.apache.maven.execution.MavenExecutionRequest
|
||||||
|
* @see org.apache.maven.execution.MavenExecutionResult
|
||||||
|
* @see org.apache.maven.project.DependencyResolutionRequest
|
||||||
|
* @see org.apache.maven.project.DependencyResolutionResultt
|
||||||
|
* @see org.apache.maven.execution.ExecutionEvent
|
||||||
|
* @see org.sonatype.aether.RepositoryEvent
|
||||||
|
*/
|
||||||
void onEvent( Object event )
|
void onEvent( Object event )
|
||||||
throws Exception;
|
throws Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.
|
||||||
|
*/
|
||||||
void close()
|
void close()
|
||||||
throws Exception;
|
throws Exception;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue