
com.dev9.mvnwatcher.event.PathEvents Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of watcher-maven-plugin Show documentation
Show all versions of watcher-maven-plugin Show documentation
Maven Plugin to watch file system changes and automatically restart builds
The newest version!
package com.dev9.mvnwatcher.event;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: bbejeck
* Date: 2/20/12
* Time: 2:05 PM
*/
public class PathEvents implements PathEventContext {
private final List pathEvents = new ArrayList<>();
private final Path watchedDirectory;
private final boolean isValid;
PathEvents(boolean valid, Path watchedDirectory) {
isValid = valid;
this.watchedDirectory = watchedDirectory;
}
@Override
public boolean isValid() {
return isValid;
}
@Override
public Path getWatchedDirectory() {
return watchedDirectory;
}
@Override
public List getEvents() {
return Collections.unmodifiableList(pathEvents);
}
public void add(PathEvent pathEvent) {
pathEvents.add(pathEvent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy