Class ScriptCompiler

java.lang.Object
de.luckymcdev.foundryengine.script.common.runtime.ScriptCompiler

public class ScriptCompiler extends Object
Thread-safe bundle compiler. Every call to compile(ScriptDefinition, SandboxPolicy) builds its own configuration, class loader, and compilation unit, so bundles can be compiled in parallel.

Sandbox customizers are added here, after the GroovyScriptEngineModifyEvent, so a mod cannot remove them. With policy.enabled() == false none of them is added and the parent class loader is not filtered.