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

io.quarkiverse.jackson.jq.deployment.JacksonJqFunctionBuildItem Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.jackson.jq.deployment;

import io.quarkus.builder.item.MultiBuildItem;
import io.quarkus.runtime.RuntimeValue;
import net.thisptr.jackson.jq.Function;

public final class JacksonJqFunctionBuildItem extends MultiBuildItem {
    private final String name;
    private final RuntimeValue function;

    public JacksonJqFunctionBuildItem(String name, RuntimeValue function) {
        this.name = name;
        this.function = function;
    }

    public String getName() {
        return name;
    }

    public RuntimeValue getFunction() {
        return function;
    }

    public static JacksonJqFunctionBuildItem of(String name, int arg, RuntimeValue function) {
        return new JacksonJqFunctionBuildItem(name + "/" + arg, function);
    }

    public static JacksonJqFunctionBuildItem of(String name, RuntimeValue function) {
        return new JacksonJqFunctionBuildItem(name, function);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy