org.springsource.loaded.agent
Class ClassPreProcessorAgentAdapter
java.lang.Object
org.springsource.loaded.agent.ClassPreProcessorAgentAdapter
- All Implemented Interfaces:
- java.lang.instrument.ClassFileTransformer
public class ClassPreProcessorAgentAdapter
- extends java.lang.Object
- implements java.lang.instrument.ClassFileTransformer
Class pre-processor.
- Since:
- 0.5.0
|
Method Summary |
static void |
reload(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPreProcessorAgentAdapter
public ClassPreProcessorAgentAdapter()
transform
public byte[] transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
throws java.lang.instrument.IllegalClassFormatException
- Specified by:
transform in interface java.lang.instrument.ClassFileTransformer
- Parameters:
loader - the defining class loaderclassName - the name of class being loadedclassBeingRedefined - when hotswap is calledprotectionDomain - bytes - the bytecode before weaving
- Returns:
- the weaved bytecode
- Throws:
java.lang.instrument.IllegalClassFormatException
reload
public static void reload(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
throws java.lang.instrument.IllegalClassFormatException
- Throws:
java.lang.instrument.IllegalClassFormatException