Package com.dotcms.repackage.groovy.lang

Examples of com.dotcms.repackage.groovy.lang.GroovyClassLoader


      /**
       * Call the named method of the given object.
       */
      public Object call(Object sourceCode, String method, Object[] args) throws BSFException {
        GroovyClassLoader gcl = new GroovyClassLoader();
        try {
        return ((GroovyObject)gcl.parseClass(sourceCode.toString()).newInstance()).invokeMethod(method, args);
        } catch (Exception e) {
              throw new BSFException(BSFException.REASON_EXECUTION_ERROR, "exception from Groovy: " + e, e);
          }
      }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.groovy.lang.GroovyClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.