org.hudsonci.maven.eventspy_30
Class EventSpySupport

java.lang.Object
  extended by org.apache.maven.eventspy.AbstractEventSpy
      extended by org.hudsonci.maven.eventspy_30.EventSpySupport
All Implemented Interfaces:
org.apache.maven.eventspy.EventSpy
Direct Known Subclasses:
DelegatingEventSpy, LoggingEventSpy, RecordingEventSpy, RemotingEventSpy, TerminateJvmEventSpy

public class EventSpySupport
extends org.apache.maven.eventspy.AbstractEventSpy

Support for EventSpy implementations.

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
protected  Logger log
           
 
Constructor Summary
EventSpySupport()
           
 
Method Summary
 void close()
           
protected  void ensureOpened()
           
protected  org.codehaus.plexus.DefaultPlexusContainer getContainer()
           
protected  org.apache.maven.eventspy.EventSpy.Context getContext()
           
protected  String getProperty(String name)
          Get a configuration property value.
protected  String getProperty(String name, String defaultValue)
          Get a configuration property value.
protected  Properties getSystemProperties()
           
protected  Properties getUserProperties()
           
protected  Properties getVersionProperties()
           
protected  File getWorkingDirectory()
           
 void init(org.apache.maven.eventspy.EventSpy.Context context)
           
protected  boolean isOpen()
           
 
Methods inherited from class org.apache.maven.eventspy.AbstractEventSpy
onEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
Constructor Detail

EventSpySupport

public EventSpySupport()
Method Detail

isOpen

protected boolean isOpen()

ensureOpened

protected void ensureOpened()

getContext

protected org.apache.maven.eventspy.EventSpy.Context getContext()

getContainer

protected org.codehaus.plexus.DefaultPlexusContainer getContainer()

getWorkingDirectory

protected File getWorkingDirectory()

getSystemProperties

protected Properties getSystemProperties()

getUserProperties

protected Properties getUserProperties()

getVersionProperties

protected Properties getVersionProperties()

getProperty

protected String getProperty(String name,
                             String defaultValue)
Get a configuration property value.


getProperty

protected String getProperty(String name)
Get a configuration property value.


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 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 org.apache.maven.eventspy.AbstractEventSpy
Throws:
Exception


Copyright © 2004-2011 Hudson. All Rights Reserved.