ClassTransformerpublic final class JLIClassTransformer extends java.lang.Object implements ClassTransformer
ClassFileTransformer.IDENTITY| Constructor | Description |
|---|---|
JLIClassTransformer(java.lang.instrument.ClassFileTransformer transformer) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
java.nio.ByteBuffer classBytes) |
Transform the bytes of a class.
|
allOf, andThenpublic JLIClassTransformer(java.lang.instrument.ClassFileTransformer transformer)
transformer - the delegate transformer (must not be null)public java.nio.ByteBuffer transform(java.lang.ClassLoader loader,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
java.nio.ByteBuffer classBytes)
throws java.lang.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)java.lang.IllegalArgumentException - if the class could not be transformed for some reasonCopyright © 2022 JBoss by Red Hat. All rights reserved.