@Deprecated public final class SynchronizedReportListener extends Object implements ThreadSafeReportListener
Constructor and Description |
---|
SynchronizedReportListener(ReportListener listener)
Deprecated.
Creates a new
SynchronizedReportListener by wrapping the given
report listener. |
Modifier and Type | Method and Description |
---|---|
void |
metricAdded(Metric metric)
Deprecated.
A new metric point has been reported.
|
void |
ruleViolationAdded(RuleViolation ruleViolation)
Deprecated.
A new violation has been found.
|
public SynchronizedReportListener(ReportListener listener)
SynchronizedReportListener
by wrapping the given
report listener.listener
- the listener to be synchronizedpublic void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded
in interface ReportListener
ruleViolationAdded
in interface ThreadSafeReportListener
ruleViolation
- the found violation.public void metricAdded(Metric metric)
metricAdded
in interface ReportListener
metricAdded
in interface ThreadSafeReportListener
metric
- the metricCopyright © 2002–2017 PMD. All rights reserved.