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

com.github.dreamhead.moco.runner.watcher.CompositeWatcher Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.runner.watcher;

public final class CompositeWatcher implements Watcher {
    private final Iterable watchers;

    public CompositeWatcher(final Iterable watchers) {
        this.watchers = watchers;
    }

    @Override
    public void start() {
        for (Watcher watcher : watchers) {
            watcher.start();
        }
    }

    @Override
    public void stop() {
        for (Watcher watcher : watchers) {
            watcher.stop();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy