jakarta.persistence.spi.PersistenceUnitInfo#addTransformer method.
The supplied transformer instance will get called to transform entity class
files when they are loaded and redefined. The transformation occurs before
the class is defined by the JVM.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public byte[] | Returns: A well-formed class file that can be loadedThe defining class loader of the class being transformed.
It may be null if using bootstrap loader loader, String The name of the class being transformed className, @Nullable Class<?> If an already loaded class is being redefined,
then pass this as a parameter classBeingRedefined, ProtectionDomain ProtectionDomain of the class being (re)-defined protectionDomain, byte[] The input byte buffer in class file format classfileBuffer)Redeclares jakarta. |
| discoverTypes | back to summary |
|---|---|
| public void discoverTypes(ClassLoader loader, String className) | |
| transform | back to summary |
|---|---|
| public byte[] transform(@Nullable ClassLoader loader, String className, @Nullable Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws TransformerException Redeclares jakarta. Invoked when a class is being loaded or redefined to add hooks for persistence bytecode manipulation.
| |