org.apache.myfaces.extensions.cdi.scripting.impl.util
Class ScriptingUtils

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.scripting.impl.util.ScriptingUtils

public class ScriptingUtils
extends Object

Author:
Gerhard Petracek

Constructor Summary
protected ScriptingUtils()
           
 
Method Summary
static UnmodifiableMap<String,Object> createExpressionLanguageHelper()
          Creates a new el helper map
static javax.script.ScriptEngineManager getCurrentScriptEngineManager()
          Resolves the current ScriptEngineManager
static ExternalExpressionInterpreter resolveExternalExpressionInterpreter()
          Resolves an ExternalExpressionInterpreter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptingUtils

protected ScriptingUtils()
Method Detail

getCurrentScriptEngineManager

public static javax.script.ScriptEngineManager getCurrentScriptEngineManager()
Resolves the current ScriptEngineManager

Returns:
the current script-engine-manager

createExpressionLanguageHelper

public static UnmodifiableMap<String,Object> createExpressionLanguageHelper()
Creates a new el helper map

Returns:
a new el helper

resolveExternalExpressionInterpreter

public static ExternalExpressionInterpreter resolveExternalExpressionInterpreter()
Resolves an ExternalExpressionInterpreter

Returns:
a scoped custom bean or a new instance of the default implementation


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