Package ai.tegmentum.webassembly4j.spi
Interface EngineProvider
public interface EngineProvider
-
Method Summary
Modifier and TypeMethodDescriptionThe concreteEngineConfigsubtype this provider accepts, if any.ai.tegmentum.webassembly4j.api.Enginecreate(ai.tegmentum.webassembly4j.api.config.WebAssemblyConfig config) default booleansupports(ai.tegmentum.webassembly4j.api.config.EngineConfig engineConfig) default ValidationResultvalidate(ai.tegmentum.webassembly4j.api.config.WebAssemblyConfig config)
-
Method Details
-
descriptor
ProviderDescriptor descriptor() -
availability
ProviderAvailability availability() -
configType
The concreteEngineConfigsubtype this provider accepts, if any.Returning a non-empty value lets the SPI's default
supports(EngineConfig)andvalidate(WebAssemblyConfig)implementations reject mismatched config automatically, and lets tooling discover which builder a user should reach for. Providers with no engine-specific config (e.g. GraalWasm) returnOptional.empty(). -
validate
-
supports
default boolean supports(ai.tegmentum.webassembly4j.api.config.EngineConfig engineConfig) -
create
ai.tegmentum.webassembly4j.api.Engine create(ai.tegmentum.webassembly4j.api.config.WebAssemblyConfig config)
-