|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.SynchronizedReportListener
public final class SynchronizedReportListener
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 |
|---|
public SynchronizedReportListener(ReportListener listener)
SynchronizedReportListener by wrapping the given
report listener.
listener - the listener to be synchronized| Method Detail |
|---|
public void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded in interface ReportListenerruleViolation - the found violation.public void metricAdded(Metric metric)
metricAdded in interface ReportListenermetric - the metric
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||