public class AuditClassTransformer extends Object implements org.broadleafcommerce.common.extensibility.jpa.convert.BroadleafClassTransformer
AuditQualifier
. The persisters are responsible
for engaging the audit system when changes to the data layer are detected.Modifier and Type | Field and Description |
---|---|
protected org.broadleafcommerce.common.logging.SupportLogger |
logger |
protected AuditQualifier |
qualifier |
Constructor and Description |
---|
AuditClassTransformer(AuditQualifier qualifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildClassLevelAnnotations(javassist.bytecode.ClassFile classFile,
javassist.bytecode.ConstPool constantPool) |
void |
compileJPAProperties(Properties properties,
Object o) |
protected javassist.bytecode.annotation.Annotation |
getEntityPersister(javassist.bytecode.ConstPool constantPool,
String inheritanceStrategy) |
protected boolean |
isEntity(javassist.bytecode.ClassFile classFile) |
protected boolean |
isSubClass(javassist.bytecode.ClassFile classFile) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
protected org.broadleafcommerce.common.logging.SupportLogger logger
protected AuditQualifier qualifier
public AuditClassTransformer(AuditQualifier qualifier)
public void compileJPAProperties(Properties properties, Object o) throws Exception
compileJPAProperties
in interface org.broadleafcommerce.common.extensibility.jpa.convert.BroadleafClassTransformer
Exception
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform
in interface javax.persistence.spi.ClassTransformer
IllegalClassFormatException
protected void buildClassLevelAnnotations(javassist.bytecode.ClassFile classFile, javassist.bytecode.ConstPool constantPool) throws javassist.NotFoundException
javassist.NotFoundException
protected boolean isSubClass(javassist.bytecode.ClassFile classFile) throws javassist.NotFoundException
javassist.NotFoundException
protected boolean isEntity(javassist.bytecode.ClassFile classFile)
protected javassist.bytecode.annotation.Annotation getEntityPersister(javassist.bytecode.ConstPool constantPool, String inheritanceStrategy)
Copyright © 2021. All rights reserved.