Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.shell.commands.scripting
Class ScriptingCommand

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.repository.AbstractCommand
      extended by org.nuxeo.ecm.shell.commands.scripting.ScriptingCommand
All Implemented Interfaces:
Command

public class ScriptingCommand
extends AbstractCommand

Author:
Bogdan Stefanescu

Constructor Summary
ScriptingCommand(java.io.File file)
           
 
Method Summary
static javax.script.CompiledScript compileScript(java.io.File file)
           
static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine, java.io.File file)
           
static javax.script.ScriptEngine getEngineByExtension(java.lang.String extension)
           
 void run(CommandLine cmdLine)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptingCommand

public ScriptingCommand(java.io.File file)
                 throws javax.script.ScriptException
Throws:
javax.script.ScriptException
Method Detail

run

public void run(CommandLine cmdLine)
         throws java.lang.Exception
Specified by:
run in interface Command
Specified by:
run in class AbstractCommand
Throws:
java.lang.Exception

getEngineByExtension

public static javax.script.ScriptEngine getEngineByExtension(java.lang.String extension)

compileScript

public static javax.script.CompiledScript compileScript(java.io.File file)
                                                 throws javax.script.ScriptException
Throws:
javax.script.ScriptException

compileScript

public static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine,
                                                        java.io.File file)
                                                 throws javax.script.ScriptException
Throws:
javax.script.ScriptException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.