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)
ScriptArchiveCompiler
shouldCompile
in interface ScriptArchiveCompiler
public java.util.Set<java.lang.Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, java.nio.file.Path targetDir)
ScriptArchiveCompiler
compile
in interface ScriptArchiveCompiler
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.