public class PersistenceWeaver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,ClassDetails> |
classDetailsMap
Class name in JVM '/' format to
ClassDetails map. |
| Constructor and Description |
|---|
PersistenceWeaver(java.util.Map<java.lang.String,ClassDetails> classDetailsMap)
INTERNAL:
Creates an instance of dynamic byte code weaver.
|
PersistenceWeaver(Session session,
java.util.Map<java.lang.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.
|
java.util.Map<java.lang.String,ClassDetails> |
getClassDetailsMap()
INTERNAL:
Get Class name in JVM '/' format to
ClassDetails map. |
protected static java.lang.String |
getShortName(java.lang.String name)
INTERNAL:
Returns an unqualified class name from the specified class name.
|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer)
INTERNAL:
Perform dynamic byte code weaving of class.
|
protected java.util.Map<java.lang.String,ClassDetails> classDetailsMap
ClassDetails map.public PersistenceWeaver(Session session,
java.util.Map<java.lang.String,ClassDetails> classDetailsMap)
session - EclipseLink session (not used so null value is OK).classDetailsMap - Class name to ClassDetails map.public PersistenceWeaver(java.util.Map<java.lang.String,ClassDetails> classDetailsMap)
classDetailsMap - Class name to ClassDetails map.public void clear()
public java.util.Map<java.lang.String,ClassDetails> getClassDetailsMap()
ClassDetails map.ClassDetails map.public byte[] transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer)
throws java.lang.instrument.IllegalClassFormatException
loader - 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.java.lang.instrument.IllegalClassFormatExceptionprotected static java.lang.String getShortName(java.lang.String name)
name - Class name with '/' as delimiter.