![JAR search and dependency download from the Maven repository](/logo.png)
org.snapscript.agent.event.ExecuteEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.agent.event;
import java.util.Map;
public class ExecuteEvent implements ProcessEvent {
private final Map> breakpoints;
private final ExecuteData data;
private final String project;
private final String resource;
private final String process;
private ExecuteEvent(Builder builder) {
this.data = new ExecuteData(builder.process, builder.project, builder.resource);
this.breakpoints = builder.breakpoints;
this.project = builder.project;
this.resource = builder.resource;
this.process = builder.process;
}
@Override
public String getProcess() {
return process;
}
public ExecuteData getData() {
return data;
}
public Map> getBreakpoints() {
return breakpoints;
}
public String getResource() {
return resource;
}
public String getProject() {
return project;
}
public static class Builder {
private Map> breakpoints;
private String project;
private String resource;
private String process;
public Builder(String process) {
this.process = process;
}
public Builder withBreakpoints(Map> breakpoints) {
this.breakpoints = breakpoints;
return this;
}
public Builder withProject(String project) {
this.project = project;
return this;
}
public Builder withResource(String resource) {
this.resource = resource;
return this;
}
public Builder withProcess(String process) {
this.process = process;
return this;
}
public ExecuteEvent build(){
return new ExecuteEvent(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy