Class Enhancer


  • public class Enhancer
    extends Object
    Executes ORM enhancement against jars and class files.
    • Constructor Detail

      • Enhancer

        public Enhancer()
    • Method Detail

      • setTargets

        public void setTargets​(Set<URL> enhanceTargets)
        Sets the class files and jar files which will be enhanced.
        Parameters:
        enhanceTargets - must not be null
      • setArgs

        public void setArgs​(String[] args)
        Sets arguments to be passed to the underlying enhancer.
        Parameters:
        args - must not be null
      • setDatanucleusVersion

        public void setDatanucleusVersion​(String datanucleusVersion)
        Sets the version of datanucleus to use for enhancement. Specifically, this is the directory under /lib/opt/tools/datanucleus containing the enhancer and the jars it depends on.
        Parameters:
        datanucleusVersion - must not be null
      • execute

        public void execute()
        Runs enhancement.