dev.soffa.foundation.core.Dispatcher Maven / Gradle / Ivy
package dev.soffa.foundation.core;
import dev.soffa.foundation.context.Context;
import dev.soffa.foundation.core.model.Serialized;
import org.checkerframework.checker.nullness.qual.NonNull;
public interface Dispatcher extends BaseDispatcher {
O dispatch(String operationName, Serialized input, String serializedContext);
> O dispatch(Class operationClass, I input, Context ctx);
> O invoke(T operation, I input, Context ctx);
@Override
default > O invoke(Class operationClass, I input, @NonNull Context ctx) {
return dispatch(operationClass, input, ctx);
}
@Override
default > O invoke(Class operationClass, I input) {
return dispatch(operationClass, input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy