org.hudsonci.maven.eventspy_30
Class RemotingEventSpy

java.lang.Object
  extended by org.apache.maven.eventspy.AbstractEventSpy
      extended by org.hudsonci.maven.eventspy_30.EventSpySupport
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
org.apache.maven.eventspy.EventSpy.Context
 
Field Summary
 
Fields inherited from class org.hudsonci.maven.eventspy_30.EventSpySupport
log
 
Constructor Summary
RemotingEventSpy(List<EventSpyHandler> handlers)
           
 
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 org.hudsonci.maven.eventspy_30.EventSpySupport
ensureOpened, getContainer, getContext, getProperty, getProperty, getSystemProperties, getUserProperties, getVersionProperties, getWorkingDirectory, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotingEventSpy

@Inject
public RemotingEventSpy(List<EventSpyHandler> handlers)
Method Detail

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.