Interface WasmBindingProvider
public interface WasmBindingProvider
-
Method Summary
Modifier and TypeMethodDescription<T> Tcreate(Class<T> iface, ai.tegmentum.webassembly4j.api.Instance instance, ai.tegmentum.webassembly4j.api.Module module, ai.tegmentum.webassembly4j.api.Engine engine) default <T> TcreateFromComponent(Class<T> iface, ai.tegmentum.webassembly4j.api.ComponentInstance componentInstance, ai.tegmentum.webassembly4j.api.Component component, ai.tegmentum.webassembly4j.api.Engine engine) Creates a binding from a native component instance.booleandefault booleanReturns whether this provider supports component model binding in addition to core module binding.
-
Method Details
-
supports
-
create
<T> T create(Class<T> iface, ai.tegmentum.webassembly4j.api.Instance instance, ai.tegmentum.webassembly4j.api.Module module, ai.tegmentum.webassembly4j.api.Engine engine) -
supportsComponentBinding
default boolean supportsComponentBinding()Returns whether this provider supports component model binding in addition to core module binding. -
createFromComponent
default <T> T createFromComponent(Class<T> iface, ai.tegmentum.webassembly4j.api.ComponentInstance componentInstance, ai.tegmentum.webassembly4j.api.Component component, ai.tegmentum.webassembly4j.api.Engine engine) Creates a binding from a native component instance. Only called whensupportsComponentBinding()returns true.
-