ClassTransformerpublic final class JLIClassTransformer extends Object implements ClassTransformer
ClassFileTransformer.IDENTITY| Constructor | Description | 
|---|---|
JLIClassTransformer(ClassFileTransformer transformer) | 
 Construct a new instance. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
ByteBuffer | 
transform(ClassLoader loader,
         String className,
         ProtectionDomain protectionDomain,
         ByteBuffer classBytes) | 
 Transform the bytes of a class. 
 | 
allOf, andThenpublic JLIClassTransformer(ClassFileTransformer transformer)
transformer - the delegate transformer (must not be null)public ByteBuffer transform(ClassLoader loader, String className, ProtectionDomain protectionDomain, ByteBuffer classBytes) throws IllegalArgumentException
ClassTransformertransform in interface ClassTransformerloader - the class loader of the class being transformedclassName - the internal name of the class being transformed (not null)protectionDomain - the protection domain of the class, if anyclassBytes - the class bytes being transformed (not null; may be a direct or heap buffer)IllegalArgumentException - if the class could not be transformed for some reasonCopyright © 2022 JBoss by Red Hat. All rights reserved.