public interface ScriptArchiveCompiler
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<?>> |
compile(ScriptArchive archive,
JBossModuleClassLoader moduleClassLoader,
java.nio.file.Path targetDir)
Compile the archive into a ScriptModule
|
boolean |
shouldCompile(ScriptArchive archive)
Whether or not this compiler should be used to compile the archive
|
boolean shouldCompile(ScriptArchive archive)
java.util.Set<java.lang.Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, java.nio.file.Path targetDir) throws ScriptCompilationException, java.io.IOException
archive
- archive to generate class files formoduleClassLoader
- class loader which can be used to find all classes and resources for modules.
The resultant classes of the compile operation should be injected into the classloader
for which the given archive has a declared dependency ontargetDir
- a directory in which to store compiled classes, if any.ScriptCompilationException
- if there was a compilation issue in the archive.java.io.IOException
- if there was a problem reading/writing the archive