public final class JLIClassTransformer extends Object implements ClassTransformer
ClassFileTransformer
.IDENTITY
Constructor and Description |
---|
JLIClassTransformer(ClassFileTransformer transformer)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
transform(ClassLoader loader,
String className,
ProtectionDomain protectionDomain,
ByteBuffer classBytes)
Transform the bytes of a class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allOf, andThen
public JLIClassTransformer(ClassFileTransformer transformer)
transformer
- the delegate transformer (must not be null
)public ByteBuffer transform(ClassLoader loader, String className, ProtectionDomain protectionDomain, ByteBuffer classBytes) throws IllegalArgumentException
ClassTransformer
transform
in interface ClassTransformer
loader
- 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 © 2023 JBoss by Red Hat. All rights reserved.