|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.confgen.ConfGenerator
public class ConfGenerator
Utility to generate Toolbox API configuration properties and XML documents using the FreeMarker Template Engine.
Constructor Summary | |
---|---|
ConfGenerator()
Default constructor |
|
ConfGenerator(java.lang.String templateDir,
java.lang.String module)
Create a new ConfGenerator. |
Method Summary | |
---|---|
void |
generate(java.util.Properties props,
java.lang.String template,
java.lang.String outFile,
java.lang.String outDir)
Generate the required configuration. |
void |
generate(java.lang.String template,
java.lang.String outFile,
java.lang.String outDir)
Generate the required configuration interactively. |
void |
listModules()
List available configuration modules |
static void |
main(java.lang.String[] args)
Application starting point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfGenerator()
public ConfGenerator(java.lang.String templateDir, java.lang.String module) throws ConfGenException
templateDir
- Template loading directorymodule
- Name of configuration module to load.
ConfGenException
- if the generator cannot be created.Method Detail |
---|
public void generate(java.util.Properties props, java.lang.String template, java.lang.String outFile, java.lang.String outDir) throws ConfGenException
props
- Module properties.
properties.template
- Name of template to use.outFile
- The output file name.outDir
- The output directory.
ConfGenException
public void generate(java.lang.String template, java.lang.String outFile, java.lang.String outDir) throws ConfGenException
template
- Name of template to use.outFile
- The output file.outDir
- The output directory.
ConfGenException
public void listModules()
public static void main(java.lang.String[] args)
args
- Command line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |