com.metaring.framework.ReinitFunctionality Maven / Gradle / Ivy
package com.metaring.framework;
import java.util.concurrent.CompletableFuture;
import com.metaring.framework.functionality.AbstractFunctionality;
import com.metaring.framework.functionality.GeneratedFunctionality;
import com.metaring.framework.functionality.FunctionalityInfo;
abstract class ReinitFunctionality extends AbstractFunctionality implements GeneratedFunctionality {
static final FunctionalityInfo INFO = FunctionalityInfo.create("com.metaring.framework.reinit", true, false, false, null, null);
static final ReinitFunctionality INSTANCE = new ReinitFunctionalityImpl();
protected ReinitFunctionality() {
super(INFO, null);
}
@Override
protected final CompletableFuture beforePreConditionCheck(Object input) throws Exception {
CompletableFuture response = beforePreConditionCheck();
return response == null ? end : response;
}
protected CompletableFuture beforePreConditionCheck() throws Exception {
return end;
}
@Override
protected final CompletableFuture preConditionCheck(Object input) throws Exception {
CompletableFuture response = preConditionCheck();
return response == null ? end : response;
}
protected abstract CompletableFuture preConditionCheck() throws Exception;
@Override
protected final CompletableFuture afterPreConditionCheck(Object input) throws Exception {
CompletableFuture response = afterPreConditionCheck();
return response == null ? end : response;
}
protected CompletableFuture afterPreConditionCheck() throws Exception {
return end;
}
@Override
protected final CompletableFuture beforeCall(Object input) throws Exception {
CompletableFuture response = beforeCall();
return response == null ? end : response;
}
protected CompletableFuture beforeCall() throws Exception {
return end;
}
@Override
protected final CompletableFuture