Class GroovyClass

java.lang.Object
org.kissweb.restServer.GroovyClass

public class GroovyClass extends Object
  • Constructor Details

    • GroovyClass

      public GroovyClass(boolean calculatePath, String sourceFile) throws Exception
      Load a groovy source file. If the file was previously loaded the old version will be used to avoid a duplicate load. If a reload is desired, call reset() first.

      If calculatePath is true, the path to sourceFile is calculated relative to the running system. If it is false, sourceFile is used as-is.

      A notable exception thrown by this method is FileNotFoundException. That occurs if the source file is not found. Other exceptions indicate a problem with the file.
      Parameters:
      calculatePath -
      sourceFile -
      Throws:
      Exception
  • Method Details