Class Starter

  • Direct Known Subclasses:
    Opt4JStarter

    public class Starter
    extends java.lang.Object
    The Starter executes configuration files.
    • Constructor Summary

      Constructors 
      Constructor Description
      Starter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<java.io.File> addPlugins()
      Adds jar files to the classpath.
      void execute​(java.lang.Class<? extends Task> taskClass, java.lang.String[] filenames)
      Executor method.
      void execute​(java.lang.String[] args)
      Executor method.
      static void main​(java.lang.String[] args)
      Start configuration files.
      • Methods inherited from class java.lang.Object

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

      • Starter

        public Starter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Start configuration files. Using multiple configuration files: Execute the Tasks successively.
        Parameters:
        args - the configuration files
        Throws:
        java.lang.Exception
      • execute

        public void execute​(java.lang.String[] args)
                     throws java.lang.Exception
        Executor method.
        Parameters:
        args - the configuration files
        Throws:
        java.lang.Exception
      • execute

        public void execute​(java.lang.Class<? extends Task> taskClass,
                            java.lang.String[] filenames)
                     throws java.lang.Exception
        Executor method.
        Parameters:
        taskClass - the class of the task to use
        filenames - the configuration files
        Throws:
        java.lang.Exception
      • addPlugins

        public java.util.Collection<java.io.File> addPlugins()
        Adds jar files to the classpath. Searches in folder plugins.
        Returns:
        all found and added jar files