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

com.alphasystem.docbook.ScriptHandler Maven / Gradle / Ivy

The newest version!
package com.alphasystem.docbook;

import com.alphasystem.docbook.model.FunctionInput;

public interface ScriptHandler {

    default T execute(FunctionInput functionInput) {
        final var binding = ApplicationController.getInstance().getScriptEngine().getBindings("js");
        return binding.getMember(functionInput.functionName()).execute(functionInput.args())
                .as(functionInput.targetType());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy