public class NoOpCompiler extends java.lang.Object implements ScriptArchiveCompiler
ScriptArchiveCompiler that does nothing. Intended for use during testing.| Constructor and Description |
|---|
NoOpCompiler() |
| 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
|
public boolean shouldCompile(ScriptArchive archive)
ScriptArchiveCompilershouldCompile in interface ScriptArchiveCompilerpublic java.util.Set<java.lang.Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, java.nio.file.Path targetDir)
ScriptArchiveCompilercompile in interface ScriptArchiveCompilerarchive - 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.