Package io.ebean.enhance.ant
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 Summary
Constructors Constructor Description OfflineFileTransform(Transformer transformer, ClassLoader classLoader, String inDir)Enhance the class file and replace the file with the the enhanced version of the class. -
Method Summary
Modifier and Type Method Description voidprocess(String packageNames)Process the packageNames as comma delimited string.voidprocess(Set<String> packageNames)Process all the comma delimited list of packages.voidsetListener(TransformationListener v)Register a listener to receive event notification
-
Constructor Details
-
OfflineFileTransform
Enhance the class file and replace the file with the the enhanced version of the class.- Parameters:
transformer- object that actually transforms the class bytesclassLoader- the ClassLoader used as part of the transformationinDir- the root directory where the class files are located
-
-
Method Details
-
setListener
Register a listener to receive event notification -
process
Process the packageNames as comma delimited string. -
process
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.
-