org.nuisto.aggregator.LoggerOccurrenceAggregator.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-lint Show documentation
Show all versions of mule-lint Show documentation
An application to check for consistency in a mule application.
package org.nuisto.aggregator
import org.nuisto.NodeChecker
class LoggerOccurrenceAggregator implements Aggregator {
int loggerCount
LoggerOccurrenceAggregator() {
init()
}
void init() {
loggerCount = 0
}
void reset() {
init()
}
void handleNode(Node node, NodeChecker nodeChecker) {
if (nodeChecker.isMatch(node, 'logger')) {
++loggerCount
}
}
Map getTotals() {
return ['loggerCount': loggerCount]
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy