public class PersistenceWeaver extends Object implements javax.persistence.spi.ClassTransformer
Constructor and Description |
---|
PersistenceWeaver(Session session,
Map classDetailsMap)
INTERNAL:
Creates an instance of dynamic byte code weaver.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
INTERNAL:
Allow the weaver to be clear to release its referenced memory.
|
Map |
getClassDetailsMap()
INTERNAL:
Get Class name in JVM '/' format to
ClassDetails map. |
byte[] |
transform(ClassLoader loader,
String className,
Class classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
INTERNAL:
Perform dynamic byte code weaving of class.
|
public PersistenceWeaver(Session session, Map classDetailsMap)
session
- EclipseLink session.classDetailsMap
- Class name to ClassDetails
map.public void clear()
public Map getClassDetailsMap()
ClassDetails
map.ClassDetails
map.public byte[] transform(ClassLoader loader, String className, Class classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform
in interface javax.persistence.spi.ClassTransformer
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 performedIllegalClassFormatException
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference