DataNucleus Byte-Code Enhancer. This provides the entry point for enhancement. Enhancement is performed using a ClassEnhancer. Currently provides a ClassEnhancer using ASM.
You can use the DataNucleusEnhancer in two ways :-
- Via the command line, entering via the main method. This creates a DataNucleusEnhancer object, sets the options necessary and calls the execute method.
- Programmatically, creating the DataNucleusEnhancer object settings options and running etc.
The programmatic way would be something like this :-
DataNucleusEnhancer enhancer = new DataNucleusEnhancer(); enhancer.setVerbose(); enhancer.enhancePersistenceUnit("myPersistenceUnit");
enhancing all classes specified by the persistence unit.