Class DefaultClassTransformInjector
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.transform.DefaultClassTransformInjector
-
- All Implemented Interfaces:
ClassTransformInjector
public class DefaultClassTransformInjector extends Object implements ClassTransformInjector
Default implementation ofClassTransformInjector. Primarily used in conjunction with thebroadleaf.jpa.oracle.short.identifier.classesproperty - along with theShortAliasannotation. One or more classes can be configured in the `classes` property in a service configuration. Then, in the target classes themselves, use theShortAliasat the type level to adjustTablename value, or at the field level to adjustColumnname value.
-
-
Constructor Summary
Constructors Constructor Description DefaultClassTransformInjector(List<String> markers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getIdentifierMap()List<String>getMarkers()voidinit(boolean dryRun)Initialize the transformation and subsequent redefinition of classes in the classloader.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.common.jpa.transform.ClassTransformInjector
reset
-
-
-
-
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.
-
-