All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.central1.profiler.reporting.CompositeReporter Maven / Gradle / Ivy

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 delegates;

    public CompositeReporter(Collection delegates) {
        this.delegates = delegates;
    }

    @Override
    public void write(Data data) {
        for (Reporter r : delegates) {
            r.write(data);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy