org.apache.jdo.enhancer
Class EnhancerMain

java.lang.Object
  extended byorg.apache.jdo.impl.enhancer.util.Assertion
      extended byorg.apache.jdo.impl.enhancer.util.Support
          extended byorg.apache.jdo.impl.enhancer.LogSupport
              extended byorg.apache.jdo.impl.enhancer.GenericMain
                  extended byorg.apache.jdo.impl.enhancer.ClassArgMain
                      extended byorg.apache.jdo.impl.enhancer.JdoMetaMain
                          extended byorg.apache.jdo.enhancer.EnhancerMain

public class EnhancerMain
extends JdoMetaMain

JDO command line enhancer.

Author:
Martin Zaun

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
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

options

protected EnhancerOptions options
The options and arguments.


enhancer

protected ClassFileEnhancer enhancer
The byte code enhancer.

Constructor Detail

EnhancerMain

public EnhancerMain(java.io.PrintWriter out,
                    java.io.PrintWriter err)
Creates an instance.


EnhancerMain

public EnhancerMain(java.io.PrintWriter out,
                    java.io.PrintWriter err,
                    EnhancerOptions options)
Creates an instance.

Method Detail

init

protected void init()
             throws EnhancerFatalError,
                    EnhancerUserException
Initializes all components.

Overrides:
init in class JdoMetaMain
Throws:
EnhancerFatalError
EnhancerUserException

process

protected int process()
Run the enhancer.

Overrides:
process in class GenericMain

main

public static void main(java.lang.String[] args)
Runs this class



Copyright © 2005 Apache Software Foundation. All Rights Reserved.