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.
do not use this class, use DirectCopyClassTransformer instead
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 Details

    • transformedMethods

      protected static List<String> transformedMethods
      Deprecated.
    • logger

      protected SupportLogger logger
      Deprecated.
    • moduleName

      protected String moduleName
      Deprecated.
    • xformTemplates

      protected Map<String,String> xformTemplates
      Deprecated.
  • Constructor Details

    • AnnotationsCopyClassTransformer

      public AnnotationsCopyClassTransformer(String moduleName)
      Deprecated.
  • Method Details

    • compileJPAProperties

      public void compileJPAProperties(Properties props, Object key) throws Exception
      Deprecated.
      Specified by:
      compileJPAProperties in interface BroadleafClassTransformer
      Throws:
      Exception
    • transform

      public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws jakarta.persistence.spi.TransformerException
      Deprecated.
      Specified by:
      transform in interface jakarta.persistence.spi.ClassTransformer
      Throws:
      jakarta.persistence.spi.TransformerException
    • getImplementationType

      protected String getImplementationType(String className)
      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

      protected String methodDescription(javassist.CtMethod method)
      Deprecated.
    • getXformTemplates

      public Map<String,String> getXformTemplates()
      Deprecated.
    • setXformTemplates

      public void setXformTemplates(Map<String,String> xformTemplates)
      Deprecated.