net.sourceforge.pmd
Class SynchronizedReportListener

java.lang.Object
  extended by net.sourceforge.pmd.SynchronizedReportListener
All Implemented Interfaces:
ReportListener

public final class SynchronizedReportListener
extends Object
implements ReportListener

Wraps a report listener in order to synchronize calls to it.


Constructor Summary
SynchronizedReportListener(ReportListener listener)
          Creates a new SynchronizedReportListener by wrapping the given report listener.
 
Method Summary
 void metricAdded(Metric metric)
          A new metric point has been reported.
 void ruleViolationAdded(RuleViolation ruleViolation)
          A new violation has been found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedReportListener

public SynchronizedReportListener(ReportListener listener)
Creates a new SynchronizedReportListener by wrapping the given report listener.

Parameters:
listener - the listener to be synchronized
Method Detail

ruleViolationAdded

public void ruleViolationAdded(RuleViolation ruleViolation)
A new violation has been found.

Specified by:
ruleViolationAdded in interface ReportListener
Parameters:
ruleViolation - the found violation.

metricAdded

public void metricAdded(Metric metric)
A new metric point has been reported.

Specified by:
metricAdded in interface ReportListener
Parameters:
metric - the metric


Copyright © 2002-2015 InfoEther. All Rights Reserved.