org.rhq.helpers.pluginGen
Class PluginGen

java.lang.Object
  extended by org.rhq.helpers.pluginGen.PluginGen

public class PluginGen
extends Object

Main class for the plugin generator

Author:
Heiko W. Rupp

Constructor Summary
PluginGen()
           
 
Method Summary
 void createFile(Props props, String template, String fileName, String directory)
          Apply a template to generate a file
static void main(String[] arg)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginGen

public PluginGen()
Method Detail

main

public static void main(String[] arg)
                 throws Exception
Throws:
Exception

run

public void run()
         throws Exception
Throws:
Exception

createFile

public void createFile(Props props,
                       String template,
                       String fileName,
                       String directory)
Apply a template to generate a file

Parameters:
props - The properties used to create the respective file
template - The name of the template without .ftl suffix
fileName - The name of the file to create
directory - The name of the directory to create in


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.