Package com.tnsai.quality.sandbox
Class ProcessSandboxFactory
java.lang.Object
com.tnsai.quality.sandbox.ProcessSandboxFactory
- All Implemented Interfaces:
SandboxFactory
Default
SandboxFactory that backs sandboxes with the JVM's
ProcessBuilder (TNS-296). Lowest priority, available on
every host — the portable fallback that ships with the framework.- Since:
- 0.10.0 (TNS-296)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAlways available — the JVM is the runtime.create(SandboxSpec spec) Create aSandboxfromspec.id()Stable backend identifier ("process","container","wasm","firecracker", …).intpriority()Lowest priority — anything stronger (container, microVM, WASM) outranks.
-
Constructor Details
-
ProcessSandboxFactory
public ProcessSandboxFactory()
-
-
Method Details
-
id
Description copied from interface:SandboxFactoryStable backend identifier ("process","container","wasm","firecracker", …). Used by callers pinning a specific backend.- Specified by:
idin interfaceSandboxFactory
-
priority
public int priority()Lowest priority — anything stronger (container, microVM, WASM) outranks.- Specified by:
priorityin interfaceSandboxFactory
-
available
public boolean available()Always available — the JVM is the runtime.- Specified by:
availablein interfaceSandboxFactory
-
create
Description copied from interface:SandboxFactoryCreate aSandboxfromspec. Implementations MUST reject specs they cannot honour (e.g. a backend that doesn't supportNetPolicy.AllowListthrows here rather than silently downgrading) — silent relaxation is the accidental-blast-radius footgun this layer exists to prevent.- Specified by:
createin interfaceSandboxFactory
-