Package com.dotcms.repackage.org.apache.bsf

Examples of com.dotcms.repackage.org.apache.bsf.BSFEngine.call()


   * @throws NoSuchUserException
   */
  public Object callMethod(String language, String filePath, Host host, String methodName, Object[] args) throws BSFException, NoSuchUserException, IOException, DotSecurityException, DotDataException{
    BSFEngine engine = manager.get().loadScriptingEngine(language);
    String source = readFile(filePath, host);
    return engine.call(source, methodName, args);
  }

  /**
   * currently doesn't work with all languages
   * @param language
View Full Code Here


   * @throws IOException
   * @throws NoSuchUserException
   */
  public Object callMethod(String language, Object o, Host host, String methodName, Object[] args) throws BSFException, NoSuchUserException, IOException, DotSecurityException, DotDataException{
    BSFEngine engine = manager.get().loadScriptingEngine(language);
    return engine.call(o, methodName, args);
  }
 
  /**
   *
   * @param language
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.