| org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage org.apache.cocoon.components.language.programming.java.JavaLanguage
All known Subclasses: org.apache.cocoon.components.language.programming.javascript.CompiledJavascriptLanguage,
JavaLanguage | public class JavaLanguage extends CompiledProgrammingLanguage implements Initializable,ThreadSafe,Serviceable,Disposable(Code) | | The Java programming language processor
author: Ricardo Rocha version: CVS $Id: JavaLanguage.java 433543 2006-08-22 06:22:54Z crossley $ |
Field Summary | |
protected ServiceManager | manager |
manager | protected ServiceManager manager(Code) | | The service manager
|
compile | protected void compile(String name, File baseDirectory, String encoding) throws LanguageException(Code) | | Compile a source file yielding a loadable class file.
Parameters: name - The object program base file name Parameters: baseDirectory - The directory containing the object program file Parameters: encoding - The encoding expected in the source file ornull if it is the platform's default encoding exception: LanguageException - If an error occurs during compilation |
dispose | public void dispose()(Code) | | dispose
|
doUnload | public void doUnload(Object program) throws LanguageException(Code) | | Unload a previously loaded class. This method simply reinstantiates the
class loader to ensure that a new version of the same class will be
correctly loaded in a future loading operation
Parameters: program - A previously loaded class exception: LanguageException - If an error occurs during unloading |
getObjectExtension | public String getObjectExtension()(Code) | | Return the language's canonical object file extension.
The object file extension |
getSourceExtension | public String getSourceExtension()(Code) | | Return the language's canonical source file extension.
The source file extension |
loadProgram | protected Class loadProgram(String name, File baseDirectory) throws LanguageException(Code) | | Actually load an object program from a class file.
Parameters: name - The object program base file name Parameters: baseDirectory - The directory containing the object program file The loaded object program exception: LanguageException - If an error occurs during loading |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Set the configuration parameters. This method instantiates the
sitemap-specified ClassLoaderManager
Parameters: params - The configuration parameters throws: ParameterException - If the class loader manager cannot beinstantiated or looked up. |
quoteString | public String quoteString(String constant)(Code) | | Escape a String according to the Java string constant
encoding rules.
Parameters: constant - The string to be escaped The escaped string |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | Set the global service manager.
Parameters: manager - The global service manager |
|
|