java.lang.instrument.ClassFileTransformer
interface based on a JPA ClassTransformer which a JPA PersistenceProvider
asks the PersistenceUnitInfo to install in the current runtime.
jakarta.persistence.spi.PersistenceUnitInfo#addTransformer(jakarta.persistence.spi.ClassTransformer)
| Modifier and Type | Field and Description |
|---|---|
| private final ClassTransformer | |
| private boolean | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public byte[] | transform(ClassLoader
the defining loader of the class to be transformed,
may be loader, String null if the bootstrap loaderthe name of the class in the internal form of fully
qualified class and interface names as defined in
The Java Virtual Machine Specification.
For example, className, Class<?> "java/util/List".if this is triggered by a redefine or retransform,
the class being redefined or retransformed;
if this is a class load, classBeingRedefined, ProtectionDomain nullthe protection domain of the class being defined or redefined protectionDomain, byte[] the input byte buffer in class file format - must not be modified classfileBuffer)Overrides default java. Transforms the given class file and returns a new replacement class file. |
| classTransformer | back to summary |
|---|---|
| private final ClassTransformer classTransformer | |
| currentlyTransforming | back to summary |
|---|---|
| private boolean currentlyTransforming | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| ClassFileTransformerAdapter | back to summary |
|---|---|
| public ClassFileTransformerAdapter(ClassTransformer classTransformer) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Overrides default java. Doc from java. Transforms the given class file and returns a new replacement class file.
This method is invoked when the
| |