|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgramGenerator
This interface defines a loader for programs automatically built from XML
documents written in a MarkupLanguage
Field Summary | |
---|---|
static String |
ROLE
|
Method Summary | |
---|---|
CompiledComponent |
load(ComponentManager newManager,
Source source,
String markupLanguage,
String programmingLanguage,
SourceResolver resolver)
Load a program built from an XML document written in a MarkupLanguage |
CompiledComponent |
load(ComponentManager newManager,
String fileName,
String markupLanguage,
String programmingLanguage,
SourceResolver resolver)
Deprecated. Pass Source object instead of file name. |
void |
release(CompiledComponent component)
Release a program instance built from an XML document written in a MarkupLanguage . |
void |
remove(Source source)
Remove a program from the generator's cache and dipose all instances of this program. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
CompiledComponent load(ComponentManager newManager, String fileName, String markupLanguage, String programmingLanguage, SourceResolver resolver) throws Exception
MarkupLanguage
newManager
- The ComponentManager that it will be loaded withfileName
- The input document's File
namemarkupLanguage
- The MarkupLanguage
in which the input
document is writtenprogrammingLanguage
- The ProgrammingLanguage
in which
the program must be written
Exception
- If an error occurs during generation or loadingCompiledComponent load(ComponentManager newManager, Source source, String markupLanguage, String programmingLanguage, SourceResolver resolver) throws Exception
MarkupLanguage
newManager
- The ComponentManager that it will be loaded withsource
- The input document's File
namemarkupLanguage
- The MarkupLanguage
in which the input
document is writtenprogrammingLanguage
- The ProgrammingLanguage
in which
the program must be written
Exception
- If an error occurs during generation or loadingvoid release(CompiledComponent component)
MarkupLanguage
.
component
- to be released.void remove(Source source)
source
- of the program to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |