ch.oscg.jreleaseinfo
Class SourceGeneratorApp

java.lang.Object
  extended by ch.oscg.jreleaseinfo.SourceGenerator
      extended by ch.oscg.jreleaseinfo.SourceGeneratorApp
All Implemented Interfaces:
SourceGeneratorIF

public class SourceGeneratorApp
extends SourceGenerator

The SourceGenerator is a simple implementation of the SourceGeneratorIF interface. In this class the code to be generated is hard coded.
This implementation adds code which shows the build information in a frame as default main-class of the jar file.
This is usefull for libraries, which do not have a main-class definition in the manifest.

Version:
$Revision: 1.2 $ ($Date: 2005/08/06 14:11:18 $ / $Author: tcotting $)
Author:
Thomas Cotting, Tangarena Engineering AG, Luzern

Constructor Summary
SourceGeneratorApp()
          Default constructor.
 
Method Summary
 java.lang.String createCode()
          Utility method to write the class java code to a String.
 
Methods inherited from class ch.oscg.jreleaseinfo.SourceGenerator
setClassName, setPackageName, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceGeneratorApp

public SourceGeneratorApp()
Default constructor.

Method Detail

createCode

public java.lang.String createCode()
Utility method to write the class java code to a String. This methods overwrites the method from SourceGenerator, adding code through createViewerCall().

Specified by:
createCode in interface SourceGeneratorIF
Overrides:
createCode in class SourceGenerator
Returns:
the created java class in a string