org.apache.myfaces.extensions.cdi.scripting.api
Interface ScriptExecutor

All Superinterfaces:
Serializable

public interface ScriptExecutor
extends Serializable

Author:
Gerhard Petracek

Method Summary
 Object eval(String script)
          Executes the given script
 Object eval(String script, javax.script.Bindings bindings)
          Executes the given script with the given Bindings
<T> T
eval(String script, javax.script.Bindings bindings, Class<T> returnType)
          Executes the given script with the given Bindings and the expected type of the result
<T> T
eval(String script, Class<T> returnType)
          Executes the given script and the expected type of the result
 Object eval(String script, Map<String,Object> arguments)
          Executes the given script with the given arguments
<T> T
eval(String script, Map<String,Object> arguments, Class<T> returnType)
          Executes the given script with the given arguments and the expected type of the result
 

Method Detail

eval

Object eval(String script)
Executes the given script

Parameters:
script - script which has to be executed
Returns:
result of the script

eval

Object eval(String script,
            Map<String,Object> arguments)
Executes the given script with the given arguments

Parameters:
script - script which has to be executed
arguments - current arguments
Returns:
result of the script

eval

Object eval(String script,
            javax.script.Bindings bindings)
Executes the given script with the given Bindings

Parameters:
script - script which has to be executed
bindings - current bindings
Returns:
result of the script

eval

<T> T eval(String script,
           Class<T> returnType)
Executes the given script and the expected type of the result

Parameters:
script - script which has to be executed
returnType - type of the result
Returns:
result of the script

eval

<T> T eval(String script,
           Map<String,Object> arguments,
           Class<T> returnType)
Executes the given script with the given arguments and the expected type of the result

Parameters:
script - script which has to be executed
arguments - current arguments
returnType - type of the result
Returns:
result of the script

eval

<T> T eval(String script,
           javax.script.Bindings bindings,
           Class<T> returnType)
Executes the given script with the given Bindings and the expected type of the result

Parameters:
script - script which has to be executed
bindings - current bindings
returnType - type of the result
Returns:
result of the script


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.