@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { initPython(); if (pexec.isImplemented(19)) { return pexec.execPythonBool("configure", req, json); } else { return super.configure(req, json); } }
@Override public boolean isApplicable(Class<? extends ToolInstallation> toolType) { initPython(); if (pexec.isImplemented(0)) { return pexec.execPythonBool("is_applicable", toolType); } else { return super.isApplicable(toolType); } }
public boolean execPythonBool(String function, Object... params) { initPython(); return pexec.execPythonBool(function, params); }