org.apache.maven.eventspy
Class AbstractEventSpy

java.lang.Object
  extended by org.apache.maven.eventspy.AbstractEventSpy
All Implemented Interfaces:
EventSpy

public abstract class AbstractEventSpy
extends Object
implements EventSpy

A skeleton eventspy that does nothing other than helping implementors.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
EventSpy.Context
 
Constructor Summary
AbstractEventSpy()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventSpy

public AbstractEventSpy()
Method Detail

init

public void init(EventSpy.Context context)
          throws Exception
Description copied from interface: EventSpy
Initializes the spy.

Specified by:
init in interface EventSpy
Parameters:
context - The event spy context, never null.
Throws:
Exception

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 interface EventSpy
Parameters:
event - The event, never .
Throws:
Exception
See Also:
SettingsBuildingRequest, SettingsBuildingResult, MavenExecutionRequest, MavenExecutionResult, DependencyResolutionRequest, org.apache.maven.project.DependencyResolutionResultt, ExecutionEvent, RepositoryEvent

close

public void close()
           throws Exception
Description copied from interface: EventSpy
Notifies the spy of Maven's termination, allowing it to free any resources allocated by it.

Specified by:
close in interface EventSpy
Throws:
Exception


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.