|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.components.language.generator.ProgramGeneratorImpl
The default implementation of ProgramGenerator
| Field Summary | |
protected boolean |
autoReload
The auto-reloading option |
protected GeneratorSelector |
cache
The ComponentSelector for programs. |
protected ClassLoaderManager |
classManager
The ClassLoaderManager |
protected java.lang.String |
contextDir
Servlet Context Directory |
protected org.apache.avalon.framework.component.ComponentSelector |
languageSelector
The programming language component selector |
protected org.apache.avalon.framework.component.ComponentManager |
manager
The component manager |
protected org.apache.avalon.framework.component.ComponentSelector |
markupSelector
The markup language component selector |
protected boolean |
preload
The pre-loading option |
protected java.lang.String |
rootPackage
The root package |
protected java.io.File |
workDir
The working directory |
| Fields inherited from interface org.apache.cocoon.components.language.generator.ProgramGenerator |
ROLE |
| Constructor Summary | |
ProgramGeneratorImpl()
|
|
| Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the global component manager. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Contextualize this class |
void |
dispose()
dispose |
CompiledComponent |
load(org.apache.avalon.framework.component.ComponentManager newManager,
Source source,
java.lang.String markupLanguageName,
java.lang.String programmingLanguageName,
SourceResolver resolver)
Load a program built from an XML document written in a MarkupLanguage |
CompiledComponent |
load(org.apache.avalon.framework.component.ComponentManager newManager,
java.lang.String fileName,
java.lang.String markupLanguageName,
java.lang.String programmingLanguageName,
SourceResolver resolver)
Load a program built from an XML document written in a MarkupLanguage |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters params)
Set the sitemap-provided configuration. |
void |
release(CompiledComponent component)
Releases the program instance. |
void |
remove(Source source)
Removes named program from the program generator's cache. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean autoReload
protected boolean preload
protected GeneratorSelector cache
protected org.apache.avalon.framework.component.ComponentManager manager
protected org.apache.avalon.framework.component.ComponentSelector markupSelector
protected org.apache.avalon.framework.component.ComponentSelector languageSelector
protected java.io.File workDir
protected ClassLoaderManager classManager
protected java.lang.String rootPackage
protected java.lang.String contextDir
| Constructor Detail |
public ProgramGeneratorImpl()
| Method Detail |
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizable
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
throws org.apache.avalon.framework.component.ComponentException
ComponentSelector used as language factory for both markup
and programming languages.compose in interface org.apache.avalon.framework.component.Composablemanager - The global component manager
public void parameterize(org.apache.avalon.framework.parameters.Parameters params)
throws org.apache.avalon.framework.parameters.ParameterException
parameterize in interface org.apache.avalon.framework.parameters.Parameterizableparams - The configuration informationorg.apache.avalon.framework.parameters.ParameterException - Not thrown here
public CompiledComponent load(org.apache.avalon.framework.component.ComponentManager newManager,
java.lang.String fileName,
java.lang.String markupLanguageName,
java.lang.String programmingLanguageName,
SourceResolver resolver)
throws java.lang.Exception
MarkupLanguageload in interface ProgramGeneratorfileName - The input document's FilemarkupLanguageName - The MarkupLanguage in which the input document is writtenprogrammingLanguageName - The ProgrammingLanguage in which the program must be writtenjava.lang.Exception - If an error occurs during generation or loading
public CompiledComponent load(org.apache.avalon.framework.component.ComponentManager newManager,
Source source,
java.lang.String markupLanguageName,
java.lang.String programmingLanguageName,
SourceResolver resolver)
throws java.lang.Exception
MarkupLanguageload in interface ProgramGeneratorsource - The input document's FilemarkupLanguageName - The MarkupLanguage in which the input document is writtenprogrammingLanguageName - The ProgrammingLanguage in which the program must be writtenjava.lang.Exception - If an error occurs during generation or loadingpublic void release(CompiledComponent component)
release in interface ProgramGeneratorcomponent - program instance to be releasedpublic void remove(Source source)
remove in interface ProgramGeneratorsource - of the program to be removedpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||