org.hudsonci.maven.eventspy_30
Class LoggingEventSpy

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.LoggingEventSpy
All Implemented Interfaces:
org.apache.maven.eventspy.EventSpy

@Named
public class LoggingEventSpy
extends EventSpySupport

A simple EventSpy which simply logs method calls.

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
LoggingEventSpy()
           
 
Method Summary
 void close()
           
 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

LoggingEventSpy

public LoggingEventSpy()
Method Detail

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.