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.classesproperty - along with the *AlternateLobannotation. One or more classes can be configured in the `classes` property in * a service configuration. Then, in the target classes themselves, use theAlternateLobat * the field level to replace aLobannotation with a HibernateTypeannotation.
-
-
Constructor Summary
Constructors Constructor Description ReplaceLobClassTransformInjector(List<String> markers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getMarkers()voidinit(boolean dryRun)Initialize the transformation and subsequent redefinition of classes in the classloader.voidreset()Reload previously targeted classes (presumably throughClassTransformInjector.init(boolean)) with their original state - prior to transformation.
-
-
-
Method Detail
-
init
public void init(boolean dryRun)
Description copied from interface:ClassTransformInjectorInitialize the transformation and subsequent redefinition of classes in the classloader.- Specified by:
initin interfaceClassTransformInjector- 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:ClassTransformInjectorReload previously targeted classes (presumably throughClassTransformInjector.init(boolean)) with their original state - prior to transformation.- Specified by:
resetin interfaceClassTransformInjector
-
-