Package io.roastedroot.proxywasm
Interface PluginFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PluginFactory
A functional interface representing a factory for creatingPlugin
instances.This is typically used in scenarios where plugin instantiation needs to be deferred or customized, potentially based on configuration or context available at runtime. Implementations might handle loading WASM modules, configuring builders, and returning the ready-to-use plugin.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Plugin
create()
Creates and returns a newPlugin
instance.
-
-
-
Method Detail
-
create
Plugin create() throws Exception
Creates and returns a newPlugin
instance. Implementations are responsible for all necessary setup, including potentially loading the WASM module and configuring it usingPlugin.builder(com.dylibso.chicory.wasm.WasmModule)
.
-
-