stomp.enhance
Class ServiceEnhancer
java.lang.Object
|
+--stomp.enhance.ServiceEnhancer
- public class ServiceEnhancer
- extends java.lang.Object
This class can be used to transform a normal java class into a
JDO-ready service-enabled class.
- Author:
- Eric Lindauer, adapted from code written by Abe White
|
Method Summary |
boolean |
alreadyEnhanced()
|
static void |
debug(serp.bytecode.Code code,
java.lang.String debug)
adds opcodes to the given code block to print out the requested debug string
at runtime. |
boolean |
enhance()
Creates all the necessary classes (proxy, interface, and delegate objects),
and stores them internally. |
static void |
main(java.lang.String[] args)
|
static void |
printUsage()
|
void |
write()
Write all the classes to files. |
static void |
writeClass(java.io.File parentDir,
serp.bytecode.BCClass theClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceEnhancer
public ServiceEnhancer(serp.bytecode.BCClass source)
throws java.lang.ClassNotFoundException
main
public static void main(java.lang.String[] args)
throws java.lang.ClassNotFoundException,
java.io.IOException
alreadyEnhanced
public boolean alreadyEnhanced()
enhance
public boolean enhance()
- Creates all the necessary classes (proxy, interface, and delegate objects),
and stores them internally.
write
public void write()
throws java.io.IOException
- Write all the classes to files.
writeClass
public static void writeClass(java.io.File parentDir,
serp.bytecode.BCClass theClass)
throws java.io.IOException
debug
public static void debug(serp.bytecode.Code code,
java.lang.String debug)
- adds opcodes to the given code block to print out the requested debug string
at runtime.
printUsage
public static void printUsage()