|
|
@ -4,7 +4,11 @@ package core.operation;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
public interface Executable {
|
|
|
|
public interface Executable {
|
|
|
|
default void execute(Map<String, Object> options) throws Exception {
|
|
|
|
default void execute(String options){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default void execute(Map<String, String> options) throws Exception {
|
|
|
|
checkSelf();
|
|
|
|
checkSelf();
|
|
|
|
beforeRun(options);
|
|
|
|
beforeRun(options);
|
|
|
|
run(options);
|
|
|
|
run(options);
|
|
|
@ -13,9 +17,11 @@ public interface Executable {
|
|
|
|
|
|
|
|
|
|
|
|
void checkSelf ()throws Exception;
|
|
|
|
void checkSelf ()throws Exception;
|
|
|
|
|
|
|
|
|
|
|
|
void beforeRun(Map<String, Object> options);
|
|
|
|
void beforeRun(Map<String, String> options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void run(Map<String, String> options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void run(Map<String, Object> options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void afterRun(Map<String, Object> options);
|
|
|
|
void afterRun(Map<String, String> options);
|
|
|
|
}
|
|
|
|
}
|
|
|
|