Class ClassTransformation

java.lang.Object
com.broadleafcommerce.common.extension.ltw.ClassTransformation

public class ClassTransformation extends Object
Configuration related to a unit of work for one or more ClassTransformationInjector instances. The class referred to in the template field is reviewed for information interesting to the injector, and the injector will use that information to redefine the target class. For example, This can be something simple like copying all field annotations to the same named fields in the target class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    Fully qualified name of the target class that will receive class information sourced from the template class.
    Fully qualified name of the template class containing the class information to source for transformation of the target class.
    int
     
    boolean
    Whether annotations should be transformed during redefinition.
    void
    setTarget(String target)
    Fully qualified name of the target class that will receive class information sourced from the template class.
    void
    setTemplate(String template)
    Fully qualified name of the template class containing the class information to source for transformation of the target class.
    void
    setTransformAnnotations(boolean transformAnnotations)
    Whether annotations should be transformed during redefinition.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClassTransformation

      public ClassTransformation()
  • Method Details

    • getTemplate

      public String getTemplate()
      Fully qualified name of the template class containing the class information to source for transformation of the target class.
    • getTarget

      public String getTarget()
      Fully qualified name of the target class that will receive class information sourced from the template class.
    • isTransformAnnotations

      public boolean isTransformAnnotations()
      Whether annotations should be transformed during redefinition. Generally relates to work performed by AnnotationClassTransformationInjector.
    • setTemplate

      public void setTemplate(String template)
      Fully qualified name of the template class containing the class information to source for transformation of the target class.
    • setTarget

      public void setTarget(String target)
      Fully qualified name of the target class that will receive class information sourced from the template class.
    • setTransformAnnotations

      public void setTransformAnnotations(boolean transformAnnotations)
      Whether annotations should be transformed during redefinition. Generally relates to work performed by AnnotationClassTransformationInjector.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object