Class ReplaceLobClassTransformInjector

java.lang.Object
com.broadleafcommerce.common.jpa.transform.ReplaceLobClassTransformInjector
All Implemented Interfaces:
ClassTransformInjector

public class ReplaceLobClassTransformInjector extends Object implements ClassTransformInjector
Primarily used in conjunction with the * broadleaf.jpa.replace.lob.classes property - along with the * AlternateLob annotation. One or more classes can be configured in the `classes` property in * a service configuration. Then, in the target classes themselves, use the AlternateLob at * the field level to replace a Lob annotation with a Hibernate Type annotation.
  • Constructor Details

    • ReplaceLobClassTransformInjector

      public ReplaceLobClassTransformInjector(List<String> markers)
  • Method Details

    • init

      public void init(boolean dryRun)
      Description copied from interface: ClassTransformInjector
      Initialize the transformation and subsequent redefinition of classes in the classloader.
      Specified by:
      init in interface ClassTransformInjector
      Parameters:
      dryRun - Whether or not redefinition should actually take place, or just identification of transformation targets and logging.
    • reset

      public void reset()
      Description copied from interface: ClassTransformInjector
      Reload previously targeted classes (presumably through ClassTransformInjector.init(boolean)) with their original state - prior to transformation.
      Specified by:
      reset in interface ClassTransformInjector
    • getMarkers

      public List<String> getMarkers()