All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.soffa.foundation.core.Operation Maven / Gradle / Ivy

There is a newer version: 0.17.31
Show newest version
package dev.soffa.foundation.core;

import dev.soffa.foundation.context.Context;
import dev.soffa.foundation.context.OperationContext;
import dev.soffa.foundation.model.TenantId;
import org.checkerframework.checker.nullness.qual.NonNull;

public interface Operation extends TenantDelegate {

    Void NO_ARG = null;

    O handle(I input, @NonNull OperationContext ctx);

    default TenantId getTenant(I input, Context ctx) {
        return TenantId.CONTEXT;
    }

    default void validate(I input, @NonNull Context ctx) {
        // Nothing to do here
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy