Invokes the named function from the Manifest with the given input. This is a convenience method. Prefer initializing and using a Plugin where possible. @param manifest the manifest containing the function @param function the name of the function to call @param input
(Manifest manifest, String function, String input)
| 42 | * @throws ExtismException if the call fails |
| 43 | */ |
| 44 | public static String invokeFunction(Manifest manifest, String function, String input) throws ExtismException { |
| 45 | try (var plugin = new Plugin(manifest, false, null)) { |
| 46 | return plugin.call(function, input); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Error levels for the Extism logging facility. |