com.central1.profiler.reporting.CompositeReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-profiler Show documentation
Show all versions of maven-profiler Show documentation
Log and POST module execution times
The newest version!
package com.central1.profiler.reporting;
import com.central1.profiler.reporting.template.Data;
import java.util.Collection;
/**
* Full credit to jcgay on github for the original maven-profiler
*
* Licensed under MIT
*
* Modifications by Delan Elliot ([email protected])
*/
public final class CompositeReporter implements Reporter {
private final Collection extends Reporter> delegates;
public CompositeReporter(Collection extends Reporter> delegates) {
this.delegates = delegates;
}
@Override
public void write(Data data) {
for (Reporter r : delegates) {
r.write(data);
}
}
}