Package jadex.bdiv3

Class BDIEnhancer


  • public class BDIEnhancer
    extends java.lang.Object
    Helper class to enhance BDI classes at buildtime. Needs access the the BDI and dependent classes. Can be used as basis for custom build tool extensions (e.g. gradle task or maven plugin).
    • Constructor Summary

      Constructors 
      Constructor Description
      BDIEnhancer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void enhanceBDIClasses​(java.lang.String indir, java.lang.String outdir)
      Enhance all BDI classes contained in a directory.
      static void main​(java.lang.String[] args)
      Main for testing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BDIEnhancer

        public BDIEnhancer()
    • Method Detail

      • enhanceBDIClasses

        public static void enhanceBDIClasses​(java.lang.String indir,
                                             java.lang.String outdir)
        Enhance all BDI classes contained in a directory. If indir and outdir are the same (also outdir==null): - BDI classes are enhance in place and replace old classes. All other files are not changed. - Already enhanced BDI classes are detected and omitted. if outdir is different than indir: - BDI classes are enhanced and copied to the outdir. - All other files are copied without change to the outdir.
        Parameters:
        indir - The input directory (is recursivly scanned for BDI classes).
        outdir - The output directory (null for the same as indir).
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main for testing.
        Throws:
        java.lang.Exception