org.apache.openjpa.enhance
Class AsmAdaptor
java.lang.Object
org.apache.openjpa.enhance.AsmAdaptor
public final class AsmAdaptor
- extends Object
Use ASM to add required StackMapTable attribute to the byte code generated by
Serp.
This class contains a small hack to pickup different known shades of ASM
to prevent classpath clashes.
We first try to use standard ASM. If this is not available we try to pickup
the shaded xbean-asm version used in OpenEJB, Geronimo or WAS.
At last we try to use the shaded version from Spring.
|
Method Summary |
static byte[] |
toByteArray(serp.bytecode.BCClass bc,
byte[] returnBytes)
|
static void |
write(serp.bytecode.BCClass bc)
|
static void |
write(serp.bytecode.BCClass bc,
File outFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsmAdaptor
public AsmAdaptor()
write
public static void write(serp.bytecode.BCClass bc)
throws IOException
- Throws:
IOException
write
public static void write(serp.bytecode.BCClass bc,
File outFile)
throws IOException
- Throws:
IOException
toByteArray
public static byte[] toByteArray(serp.bytecode.BCClass bc,
byte[] returnBytes)
throws IOException
- Throws:
IOException
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.