com.alphasystem.docbook.ScriptHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docbook-2-docx Show documentation
Show all versions of docbook-2-docx Show documentation
Alpha system commons library
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());
}
}