Class AnnotationsCopyClassTransformer
java.lang.Object
org.broadleafcommerce.common.extensibility.jpa.copy.AnnotationsCopyClassTransformer
- All Implemented Interfaces:
jakarta.persistence.spi.ClassTransformer,BroadleafClassTransformer
@Deprecated
public class AnnotationsCopyClassTransformer
extends Object
implements BroadleafClassTransformer
Deprecated.
This class transformer will copy fields, methods, and interface definitions from a source class to a target class,
based on the xformTemplates map. It will fail if it encouters any duplicate definitions.
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SupportLoggerDeprecated.protected StringDeprecated.Deprecated.Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompileJPAProperties(Properties props, Object key) Deprecated.protected StringgetImplementationType(String className) Deprecated.This method will do its best to return an implementation type for a given classname.Deprecated.protected StringmethodDescription(javassist.CtMethod method) Deprecated.voidsetXformTemplates(Map<String, String> xformTemplates) Deprecated.byte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Deprecated.
-
Field Details
-
transformedMethods
Deprecated. -
logger
Deprecated. -
moduleName
Deprecated. -
xformTemplates
Deprecated.
-
-
Constructor Details
-
AnnotationsCopyClassTransformer
Deprecated.
-
-
Method Details
-
compileJPAProperties
Deprecated.- Specified by:
compileJPAPropertiesin interfaceBroadleafClassTransformer- Throws:
Exception
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws jakarta.persistence.spi.TransformerException Deprecated.- Specified by:
transformin interfacejakarta.persistence.spi.ClassTransformer- Throws:
jakarta.persistence.spi.TransformerException
-
getImplementationType
Deprecated.This method will do its best to return an implementation type for a given classname. This will allow weaving template classes to have initialized values.We provide default implementations for List, Map, and Set, and will attempt to utilize a default constructor for other classes.
If the className contains an '[', we will return null.
-
methodDescription
Deprecated. -
getXformTemplates
Deprecated. -
setXformTemplates
Deprecated.
-
DirectCopyClassTransformerinstead