org.hudsonci.maven.eventspy_30
Class DelegatingEventSpy

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.DelegatingEventSpy
All Implemented Interfaces:
com.google.inject.Module, org.apache.maven.eventspy.EventSpy

@Component(role=org.apache.maven.eventspy.EventSpy.class,
           hint="delegating")
public class DelegatingEventSpy
extends EventSpySupport
implements com.google.inject.Module

Delegates to a EventSpy component configured via Constants.DELEGATE_PROPERTY. This is the main EventSpy which Maven will load and is configured via Plexus, delegate is loaded via JSR-330.

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
DelegatingEventSpy()
          For Plexus.
DelegatingEventSpy(org.apache.maven.eventspy.EventSpy delegate)
           
 
Method Summary
 void close()
           
 void configure(com.google.inject.Binder binder)
           
 org.apache.maven.eventspy.EventSpy getDelegate()
           
 void init(org.apache.maven.eventspy.EventSpy.Context context)
           
 void onEvent(Object event)
           
 
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

DelegatingEventSpy

public DelegatingEventSpy()
For Plexus.


DelegatingEventSpy

@TestAccessible
public DelegatingEventSpy(org.apache.maven.eventspy.EventSpy delegate)
Method Detail

getDelegate

public org.apache.maven.eventspy.EventSpy getDelegate()

configure

public void configure(com.google.inject.Binder binder)
Specified by:
configure in interface com.google.inject.Module

init

public void init(org.apache.maven.eventspy.EventSpy.Context context)
          throws Exception
Specified by:
init in interface org.apache.maven.eventspy.EventSpy
Overrides:
init in class EventSpySupport
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

onEvent

public void onEvent(Object event)
             throws Exception
Specified by:
onEvent in interface org.apache.maven.eventspy.EventSpy
Overrides:
onEvent in class org.apache.maven.eventspy.AbstractEventSpy
Throws:
Exception


Copyright © 2004-2011 Hudson. All Rights Reserved.