|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.util.Assertion
org.apache.jdo.impl.enhancer.util.Support
org.apache.jdo.impl.enhancer.LogSupport
org.apache.jdo.impl.enhancer.GenericMain
org.apache.jdo.impl.enhancer.ClassArgMain
org.apache.jdo.impl.enhancer.JdoMetaMain
org.apache.jdo.enhancer.EnhancerMain
JDO command line enhancer.
Field Summary | |
protected ClassFileEnhancer |
enhancer
The byte code enhancer. |
protected EnhancerOptions |
options
The options and arguments. |
Fields inherited from class org.apache.jdo.impl.enhancer.JdoMetaMain |
jdoMeta |
Fields inherited from class org.apache.jdo.impl.enhancer.ClassArgMain |
classes |
Fields inherited from class org.apache.jdo.impl.enhancer.GenericMain |
err, INTERNAL_ERROR, OK, out, USAGE_ERROR, USER_EXCEPTION |
Fields inherited from class org.apache.jdo.impl.enhancer.util.Support |
timer |
Constructor Summary | |
EnhancerMain(java.io.PrintWriter out,
java.io.PrintWriter err)
Creates an instance. |
|
EnhancerMain(java.io.PrintWriter out,
java.io.PrintWriter err,
EnhancerOptions options)
Creates an instance. |
Method Summary | |
private void |
closeOutputStream(java.io.OutputStream out)
Closes an output stream. |
private java.io.File |
createArchiveOutputFile(java.lang.String archiveFileName)
Creates a file object that represents the output archive file for a given archive file to enhance. |
private void |
createOutputFile(boolean enhanced,
java.lang.String fileName,
java.io.File temp)
Creates the output file for an enhanced class- or archive file. |
private void |
enhanceArchiveFile(java.lang.String fileName)
Enhances a archive file. |
private void |
enhanceClassFile(java.io.InputStream in)
Enhances a classfile. |
private int |
enhanceInputFiles(java.util.List classNames,
java.util.List classFileNames,
java.util.List archiveFileNames)
Enhances all files entered in the command line. |
protected void |
init()
Initializes all components. |
static void |
main(java.lang.String[] args)
Runs this class |
protected int |
process()
Run the enhancer. |
Methods inherited from class org.apache.jdo.impl.enhancer.JdoMetaMain |
initJdoMetaData |
Methods inherited from class org.apache.jdo.impl.enhancer.ClassArgMain |
closeInputStream, getClassFileName, initClassLocator, openClassInputStream, openFileInputStream |
Methods inherited from class org.apache.jdo.impl.enhancer.GenericMain |
flush, print, println, println, printlnErr, printlnErr, printlnErr, printlnErr, run |
Methods inherited from class org.apache.jdo.impl.enhancer.util.Support |
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
Methods inherited from class org.apache.jdo.impl.enhancer.util.Assertion |
affirm, affirm, affirm, affirm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EnhancerOptions options
protected ClassFileEnhancer enhancer
Constructor Detail |
public EnhancerMain(java.io.PrintWriter out, java.io.PrintWriter err)
public EnhancerMain(java.io.PrintWriter out, java.io.PrintWriter err, EnhancerOptions options)
Method Detail |
private int enhanceInputFiles(java.util.List classNames, java.util.List classFileNames, java.util.List archiveFileNames)
classNames
- List of class names.classFileNames
- List of class file names.archiveFileNames
- List of archive file names.private void enhanceClassFile(java.io.InputStream in) throws java.io.IOException, EnhancerUserException, EnhancerFatalError
in
- The input stream of the classfile.
java.io.IOException
EnhancerUserException
EnhancerFatalError
private void enhanceArchiveFile(java.lang.String fileName) throws java.io.IOException, EnhancerUserException, EnhancerFatalError
fileName
- The filename of the archive file.
java.io.IOException
EnhancerUserException
EnhancerFatalError
private java.io.File createArchiveOutputFile(java.lang.String archiveFileName)
archiveFileName
- the input archive file name
private void createOutputFile(boolean enhanced, java.lang.String fileName, java.io.File temp) throws java.io.IOException
enhanced
- Has the input file been enhanced?fileName
- The name of the output file.temp
- The temp file, the output is written to.
java.io.IOException
- If the file could not be created.private void closeOutputStream(java.io.OutputStream out)
out
- the output streamprotected void init() throws EnhancerFatalError, EnhancerUserException
init
in class JdoMetaMain
EnhancerFatalError
EnhancerUserException
protected int process()
process
in class GenericMain
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |