Class OfflineFileTransform

java.lang.Object
io.ebean.enhance.ant.OfflineFileTransform

public class OfflineFileTransform extends Object
Transforms class files when they are on the file system.

Typically run as part of an ANT task rather than when Ebean is running.

  • Constructor Details

    • OfflineFileTransform

      public OfflineFileTransform(Transformer transformer, ClassLoader classLoader, String inDir)
      Enhance the class file and replace the file with the the enhanced version of the class.
      Parameters:
      transformer - object that actually transforms the class bytes
      classLoader - the ClassLoader used as part of the transformation
      inDir - the root directory where the class files are located
  • Method Details

    • setListener

      Register a listener to receive event notification
    • process

      public void process(String packageNames)
      Process the packageNames as comma delimited string.
    • process

      public void process(Set<String> packageNames)
      Process all the comma delimited list of packages.

      Package names are effectively converted into a directory on the file system, and the class files are found and processed.