Package rife.instrument
Class RifeTransformer
java.lang.Object
rife.instrument.RifeTransformer
- All Implemented Interfaces:
ClassFileTransformer
- Direct Known Subclasses:
ContinuationsTransformer
,FinalTransformer
,InitialTransformer
,LazyLoadTransformer
,MetaDataTransformer
An abstract base class that will only execute the bytecode transformation
when the class is considered to not be part of a core package, like for
example the JDK or the standard XML parsers.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]
transform
(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) protected abstract byte[]
transformRife
(ClassLoader loader, String classNameInternal, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) This transform method will only be called when the class is not part of a core package.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Constructor Details
-
RifeTransformer
public RifeTransformer()
-
-
Method Details
-
transform
public final byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException - Specified by:
transform
in interfaceClassFileTransformer
- Throws:
IllegalClassFormatException
-
transformRife
protected abstract byte[] transformRife(ClassLoader loader, String classNameInternal, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException This transform method will only be called when the class is not part of a core package.For the rest it functions exactly as the regular
transform
method.
-