org.hudsonci.maven.eventspy_30
Class RemotingEventSpy
java.lang.Object
org.apache.maven.eventspy.AbstractEventSpy
org.hudsonci.maven.eventspy_30.EventSpySupport
org.hudsonci.maven.eventspy_30.RemotingEventSpy
- All Implemented Interfaces:
- org.apache.maven.eventspy.EventSpy
@Named
public class RemotingEventSpy
- extends EventSpySupport
Hudson EventSpy for Maven 3.0 integration.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy |
org.apache.maven.eventspy.EventSpy.Context |
|
Method Summary |
void |
close()
|
void |
init(org.apache.maven.eventspy.EventSpy.Context context)
Invoked by Maven startup process. |
void |
onEvent(Object event)
Performs event processing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemotingEventSpy
@Inject
public RemotingEventSpy(List<EventSpyHandler> handlers)
init
public void init(org.apache.maven.eventspy.EventSpy.Context context)
throws Exception
- Invoked by Maven startup process.
Initiates the remoting connection back to controlling MavenBuilder component.
Waits for callback reference, blocking until received (or times out).
Initializes the event processor with context.
- Specified by:
init in interface org.apache.maven.eventspy.EventSpy- Overrides:
init in class EventSpySupport
- Throws:
Error - Initialization failed.
Exception
onEvent
public void onEvent(Object event)
throws Exception
- Performs event processing.
Handles throwing
BuildAbort.
- Specified by:
onEvent in interface org.apache.maven.eventspy.EventSpy- Overrides:
onEvent in class org.apache.maven.eventspy.AbstractEventSpy
- Throws:
Exception
close
public void close()
throws Exception
- Specified by:
close in interface org.apache.maven.eventspy.EventSpy- Overrides:
close in class EventSpySupport
- Throws:
Exception
Copyright © 2004-2011 Hudson. All Rights Reserved.