org.jpox.enhancer
Class JPOXEnhancer

java.lang.Object
  extended byorg.jpox.enhancer.GeneratorBase
      extended byorg.jpox.enhancer.JPOXEnhancer
All Implemented Interfaces:
Generator

public class JPOXEnhancer
extends GeneratorBase

Byte Code enhancement entry point for JPOX Enhancer.

Version:
$Revision: 1.33 $

Field Summary
 
Fields inherited from class org.jpox.enhancer.GeneratorBase
addFieldList, addSerialVersionUID, classConfig, className, classType, clr, constantPoolGen, jdoConfig, LOCALISER, methodBuilderList, newClass, oldClass, packageConfig, update
 
Fields inherited from interface org.jpox.enhancer.Generator
CN_BitSet, CN_ByteIdentity, CN_CharIdentity, CN_Class, CN_ClassCastException, CN_Detachable, CN_Flag, CN_IllegalArgumentException, CN_IllegalStateException, CN_IntIdentity, CN_JDODetachedFieldAccessException, CN_JDOFatalInternalException, CN_JDOHelper, CN_JDOImplHelper, CN_LongIdentity, CN_ObjectIdentity, CN_ObjectIdFieldConsumer, CN_ObjectIdFieldSupplier, CN_PersistenceCapable, CN_PersistenceManager, CN_ShortIdentity, CN_StateManager, CN_StringIdentity, FN_FieldFlags, FN_FieldNames, FN_FieldTypes, FN_Flag, FN_JdoDetachedState, FN_JdoLoadedFields, FN_JdoModifiedFields, FN_JdoObjectId, FN_JdoParentFieldCount, FN_JdoVersion, FN_PersistenceCapableSuperclass, FN_serialVersionUID, FN_StateManager, MN_FieldFlagsInitMethod, MN_FieldNamesInitMethod, MN_FieldTypesInitMethod, MN_JdoGetPersistenceManager, MN_JdoIsDetached, MN_jdoLoadClass, MN_JdoManagingFieldCountMethod, MN_JdoParentManagingFieldCountMethod, MN_JdoPreSerialize, MN_JdoSuperClone, MN_PersistenceCapableSuperclassInitMethod, OT_BitSet, OT_ByteIdentity, OT_CharIdentity, OT_CLASS, OT_Detachable, OT_Flag, OT_IntIdentity, OT_JDOImplHelper, OT_LongIdentity, OT_ObjectArray, OT_ObjectIdentity, OT_ObjectIdFieldConsumer, OT_ObjectIdFieldSupplier, OT_PersistenceCapable, OT_PersistenceManager, OT_ShortIdentity, OT_StateManager, OT_StringIdentity
 
Constructor Summary
JPOXEnhancer(EnhancerClassMetaData classConfig)
          Constructor
 
Method Summary
 void enhanceClassAfter()
          call after check enhanceClass() method.
 void enhanceClassBefore()
          call after check method.
 void enhanceFieldsAfter()
          call after check enhanceFields() method.
 void enhanceFieldsBefore()
          call after check enhanceClassAfter() method.
 void enhanceMethodAfter()
          call after check enhanceMethod() method.
 void enhanceMethodBefore()
          call after check enhanceFieldsAfter() method.
 void enhanceStaticInitializerAfter()
          call after check enhanceStaticInitializer() method.
 void enhanceStaticInitializerBefore()
          call after check enhanceMethodAfter() method.
protected  GeneratorBase getGenerator()
           
static java.lang.String getVendorName()
          Utility to get the vendor of JPOX Enhancer.
static java.lang.String getVersionNumber()
          Utility to get the version of JPOX Enhancer.
static void main(java.lang.String[] args)
          Entry point for command line JPOX enhancer.
protected  void staticInitializerAppend(org.apache.bcel.generic.InstructionFactory factory, org.apache.bcel.generic.InstructionList il)
           
 
Methods inherited from class org.jpox.enhancer.GeneratorBase
check, checkEnhanced, checkHasDefaultConstructor, class_addInterface, dumpClass, enhance, enhanceClass, enhanceFields, enhanceGetter, enhanceMethod, enhanceOriginalMethod, enhanceOriginalMethods, enhanceSetter, enhanceStaticInitializer, field_addField, getBytes, getClassLoaderResolver, getFullClassNames, init_addFieldsList, init_addMethodCallbackList, init, readJDOConfig, store, update, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPOXEnhancer

public JPOXEnhancer(EnhancerClassMetaData classConfig)
Constructor

Parameters:
classConfig - class config
Method Detail

getGenerator

protected GeneratorBase getGenerator()
Specified by:
getGenerator in class GeneratorBase

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Entry point for command line JPOX enhancer.

Parameters:
args - Command line arguments
Throws:
java.lang.Exception - Thrown if an error occurs

enhanceClassAfter

public void enhanceClassAfter()
Description copied from interface: Generator
call after check enhanceClass() method.

Specified by:
enhanceClassAfter in interface Generator
Specified by:
enhanceClassAfter in class GeneratorBase

enhanceClassBefore

public void enhanceClassBefore()
Description copied from interface: Generator
call after check method.

Specified by:
enhanceClassBefore in interface Generator
Specified by:
enhanceClassBefore in class GeneratorBase

enhanceFieldsAfter

public void enhanceFieldsAfter()
Description copied from interface: Generator
call after check enhanceFields() method.

Specified by:
enhanceFieldsAfter in interface Generator
Specified by:
enhanceFieldsAfter in class GeneratorBase

enhanceFieldsBefore

public void enhanceFieldsBefore()
Description copied from interface: Generator
call after check enhanceClassAfter() method.

Specified by:
enhanceFieldsBefore in interface Generator
Specified by:
enhanceFieldsBefore in class GeneratorBase

enhanceMethodAfter

public void enhanceMethodAfter()
Description copied from interface: Generator
call after check enhanceMethod() method.

Specified by:
enhanceMethodAfter in interface Generator
Specified by:
enhanceMethodAfter in class GeneratorBase

enhanceMethodBefore

public void enhanceMethodBefore()
Description copied from interface: Generator
call after check enhanceFieldsAfter() method.

Specified by:
enhanceMethodBefore in interface Generator
Specified by:
enhanceMethodBefore in class GeneratorBase

enhanceStaticInitializerAfter

public void enhanceStaticInitializerAfter()
Description copied from interface: Generator
call after check enhanceStaticInitializer() method.

Specified by:
enhanceStaticInitializerAfter in interface Generator
Specified by:
enhanceStaticInitializerAfter in class GeneratorBase

staticInitializerAppend

protected void staticInitializerAppend(org.apache.bcel.generic.InstructionFactory factory,
                                       org.apache.bcel.generic.InstructionList il)
Specified by:
staticInitializerAppend in class GeneratorBase

enhanceStaticInitializerBefore

public void enhanceStaticInitializerBefore()
Description copied from interface: Generator
call after check enhanceMethodAfter() method.

Specified by:
enhanceStaticInitializerBefore in interface Generator
Specified by:
enhanceStaticInitializerBefore in class GeneratorBase

getVersionNumber

public static java.lang.String getVersionNumber()
Utility to get the version of JPOX Enhancer.

Returns:
Version number for JPOX Enhancer.

getVendorName

public static java.lang.String getVendorName()
Utility to get the vendor of JPOX Enhancer.

Returns:
Vendor name for JPOX Enhancer.


Copyright © -2007 . All Rights Reserved.