Package org.apache.commons.jci.compilers
Class RhinoJavaCompiler
- java.lang.Object
-
- org.apache.commons.jci.compilers.AbstractJavaCompiler
-
- org.apache.commons.jci.compilers.RhinoJavaCompiler
-
- All Implemented Interfaces:
JavaCompiler
public final class RhinoJavaCompiler extends AbstractJavaCompiler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classRhinoJavaCompiler.RhinoCompilingClassLoaderbased on code from dev.helma.org http://dev.helma.org/source/file/helma/branches/rhinoloader/src/org/helma/javascript/RhinoLoader.java/?revision=95
-
Field Summary
Fields Modifier and Type Field Description private JavaCompilerSettingsdefaultSettingsprivate org.apache.commons.logging.Loglog-
Fields inherited from class org.apache.commons.jci.compilers.AbstractJavaCompiler
problemHandler
-
-
Constructor Summary
Constructors Constructor Description RhinoJavaCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilationResultcompile(java.lang.String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, java.lang.ClassLoader pClassLoader, JavaCompilerSettings pSettings)Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class".JavaCompilerSettingscreateDefaultSettings()factory method to create the underlying default settings-
Methods inherited from class org.apache.commons.jci.compilers.AbstractJavaCompiler
compile, compile, setCompilationProblemHandler
-
-
-
-
Field Detail
-
log
private final org.apache.commons.logging.Log log
-
defaultSettings
private final JavaCompilerSettings defaultSettings
-
-
Method Detail
-
compile
public CompilationResult compile(java.lang.String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, java.lang.ClassLoader pClassLoader, JavaCompilerSettings pSettings)
Description copied from interface:JavaCompilerCompiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class". Note: As these are resource path you always have to use "/" The result of the compilation run including detailed error information is returned as CompilationResult. If you need to get notified already during the compilation process you can register a CompilationProblemHandler. Note: Not all compilers might support this notification mechanism.- Returns:
- always a CompilationResult
-
createDefaultSettings
public JavaCompilerSettings createDefaultSettings()
Description copied from interface:JavaCompilerfactory method to create the underlying default settings
-
-