| java.lang.Object com.triactive.jdo.enhance.Enhancer
All known Subclasses: com.triactive.jdo.enhance.SunReferenceEnhancer,
Enhancer | abstract public class Enhancer (Code) | | Abstract class for JDO bytecode enhancement utility. The expected
command-line syntax is:
java com.triactive.jdo.enhance.Enhancer JDO-metadata-filename ...
Every class listed in the given metadata file(s) should be made persistence
capable via bytecode enhancement.
This class must be subclassed with an implementation that uses a working
bytecode enhancer. The key method that needs to be overridden and implemented
is callExternalEnhancer(String[]).
version: $Revision: 1.9 $ |
Constructor Summary | |
protected | Enhancer() Protected constructor to prevent outside instantiation. |
Method Summary | |
abstract protected int | callExternalEnhancer(String[] classNames) Called by enhance() to enhance a list of classes. | protected int | enhance(List classNames) | protected static List | getOrderedClassNames(String[] metaDataFileNames) Returns a list of all classes declared in the given metadata files,
ordered such that all superclasses occur before their subclasses.
Parameters: metaDataFileNames - The list of JDO metadata file names. | protected static void | writeClassListFile(String filename, List classNames) Writes out the given list of classes to a file. |
Enhancer | protected Enhancer()(Code) | | Protected constructor to prevent outside instantiation.
|
callExternalEnhancer | abstract protected int callExternalEnhancer(String[] classNames) throws Exception(Code) | | Called by enhance() to enhance a list of classes.
Subclasses implement this method to invoke the 3rd-party class enhancer.
Parameters: classNames - The list of class names to be enhanced |
getOrderedClassNames | protected static List getOrderedClassNames(String[] metaDataFileNames) throws IOException, ParserConfigurationException, SAXException(Code) | | Returns a list of all classes declared in the given metadata files,
ordered such that all superclasses occur before their subclasses.
Parameters: metaDataFileNames - The list of JDO metadata file names. An ordered list of class name strings. exception: IOException - If any I/O error occurs. exception: ParserConfigurationXException - If an XML document builder cannot be created. exception: SAXException - If any parse error occurs. |
writeClassListFile | protected static void writeClassListFile(String filename, List classNames) throws IOException(Code) | | Writes out the given list of classes to a file.
|
|
|