public class JavassistClassTransformer extends AbstractClassTransformerImpl
classFilter, fieldFilter
Constructor and Description |
---|
JavassistClassTransformer(ClassFilter classFilter,
FieldFilter fieldFilter)
Constructs the JavassistClassTransformer
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
doTransform(ClassLoader loader,
String className,
Class classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
Delegate the transformation call from
AbstractClassTransformerImpl.transform(java.lang.ClassLoader, java.lang.String, java.lang.Class, java.security.ProtectionDomain, byte[]) |
protected FieldTransformer |
getFieldTransformer(javassist.bytecode.ClassFile classfile,
javassist.ClassPool classPool) |
transform
public JavassistClassTransformer(ClassFilter classFilter, FieldFilter fieldFilter)
classFilter
- The filter used to determine which classes to transformfieldFilter
- The filter used to determine which fields to transformprotected byte[] doTransform(ClassLoader loader, String className, Class classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
AbstractClassTransformerImpl
AbstractClassTransformerImpl.transform(java.lang.ClassLoader, java.lang.String, java.lang.Class, java.security.ProtectionDomain, byte[])
doTransform
in class AbstractClassTransformerImpl
loader
- The class loader to useclassName
- The name of the class to transformclassBeingRedefined
- If an already loaded class is being redefined, then pass this as a parameterprotectionDomain
- The protection domain of the class being (re)definedclassfileBuffer
- The bytes of the class file.protected FieldTransformer getFieldTransformer(javassist.bytecode.ClassFile classfile, javassist.ClassPool classPool)
Copyright © 2016 JBoss by Red Hat. All rights reserved.