public class PersistenceWeaver extends Object implements jakarta.persistence.spi.ClassTransformer
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ClassDetails> |
classDetailsMap
Class name in JVM '/' format to
ClassDetails map. |
| Constructor and Description |
|---|
PersistenceWeaver(Map<String,ClassDetails> classDetailsMap)
INTERNAL:
Creates an instance of dynamic byte code weaver.
|
PersistenceWeaver(Session session,
Map<String,ClassDetails> classDetailsMap)
Deprecated.
Session instance is no longer needed for logging. Will be removed in 2.8.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
INTERNAL:
Allow the weaver to be clear to release its referenced memory.
|
Map<String,ClassDetails> |
getClassDetailsMap()
INTERNAL:
Get Class name in JVM '/' format to
ClassDetails map. |
protected static String |
getShortName(String name)
INTERNAL:
Returns an unqualified class name from the specified class name.
|
byte[] |
transform(ClassLoader loader,
String className,
Class classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
INTERNAL:
Perform dynamic byte code weaving of class.
|
protected Map<String,ClassDetails> classDetailsMap
ClassDetails map.@Deprecated public PersistenceWeaver(Session session, Map<String,ClassDetails> classDetailsMap)
session - EclipseLink session (not used so null value is OK).classDetailsMap - Class name to ClassDetails map.public PersistenceWeaver(Map<String,ClassDetails> classDetailsMap)
classDetailsMap - Class name to ClassDetails map.public void clear()
public Map<String,ClassDetails> getClassDetailsMap()
ClassDetails map.ClassDetails map.public byte[] transform(ClassLoader loader, String className, Class classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface jakarta.persistence.spi.ClassTransformerloader - The defining loader of the class to be transformed, may be null
if the bootstrap loader.className - The name of the class in the internal form of fully qualified class and interface
names.classBeingRedefined - If this is a redefine, the class being redefined, otherwise null.protectionDomain - The protection domain of the class being defined or redefined.classfileBuffer - The input byte buffer in class file format (must not be modified).null if no transform
is performed.IllegalClassFormatExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.