org.apache.maven.eventspy
Class AbstractEventSpy
java.lang.Object
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.
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 |
AbstractEventSpy
public AbstractEventSpy()
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 null
.
- Throws:
Exception
- See Also:
SettingsBuildingRequest
,
SettingsBuildingResult
,
MavenExecutionRequest
,
MavenExecutionResult
,
DependencyResolutionRequest
,
DependencyResolutionResult
,
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–2013 The Apache Software Foundation. All rights reserved.