| org.apache.cocoon.components.language.generator.ProgramGeneratorImpl
ProgramGeneratorImpl | public class ProgramGeneratorImpl extends AbstractLogEnabled implements ProgramGenerator,Contextualizable,Composable,Parameterizable,Disposable,ThreadSafe(Code) | | The default implementation of ProgramGenerator
author: Ricardo Rocha author: Vadim Gritsenko author: Torsten Curdt version: CVS $Id: ProgramGeneratorImpl.java 433543 2006-08-22 06:22:54Z crossley $ |
autoReload | protected boolean autoReload(Code) | | The auto-reloading option
|
cache | protected GeneratorSelector cache(Code) | | The ComponentSelector for programs. Caches Program by program
source file.
|
contextDir | protected String contextDir(Code) | | Servlet Context Directory
|
languageSelector | protected ComponentSelector languageSelector(Code) | | The programming language component selector
|
manager | protected ComponentManager manager(Code) | | The component manager
|
markupSelector | protected ComponentSelector markupSelector(Code) | | The markup language component selector
|
preload | protected boolean preload(Code) | | The pre-loading option
|
rootPackage | protected String rootPackage(Code) | | The root package
|
watchSource | protected boolean watchSource(Code) | | The check for manual source changes in the repository
|
workDir | protected File workDir(Code) | | The working directory
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Set the global component manager. This method also sets the
ComponentSelector used as language factory for both markup
and programming languages.
Parameters: manager - The global component manager |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | Contextualize this class
|
dispose | public void dispose()(Code) | | dispose
|
load | public CompiledComponent load(ComponentManager newManager, String fileName, String markupLanguageName, String programmingLanguageName, SourceResolver resolver) throws Exception(Code) | | Load a program built from an XML document written in a MarkupLanguage
Parameters: fileName - The input document's File Parameters: markupLanguageName - The MarkupLanguage in which the input document is written Parameters: programmingLanguageName - The ProgrammingLanguage in which the program must be written The loaded program instance exception: Exception - If an error occurs during generation or loading |
load | public CompiledComponent load(ComponentManager newManager, Source source, String markupLanguageName, String programmingLanguageName, SourceResolver resolver) throws Exception(Code) | | Load a program built from an XML document written in a MarkupLanguage .
This method does not releases passed source object. Caller of the method must release
source when needed.
Parameters: source - The input document's File Parameters: markupLanguageName - The MarkupLanguage in which the input document is written Parameters: programmingLanguageName - The ProgrammingLanguage in which the program must be written The loaded program instance exception: Exception - If an error occurs during generation or loading |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Set the sitemap-provided configuration. This method sets the persistent code repository and the auto-reload option
Parameters: params - The configuration information exception: ParameterException - Not thrown here |
release | public void release(CompiledComponent component)(Code) | | Releases the program instance.
Parameters: component - program instance to be released |
remove | public void remove(Source source)(Code) | | Removes named program from the program generator's cache.
Disposes all created instances of the program.
Parameters: source - of the program to be removed |
|
|