org.springframework.scripting.support

## 类 StandardScriptUtils

- java.lang.Object
- - org.springframework.scripting.support.StandardScriptUtils

-     public abstract class StandardScriptUtils
      extends Object

  Common operations for dealing with a JSR-223 `ScriptEngine`.
  从以下版本开始:
    4.2.2
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `StandardScriptUtils()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ScriptEngine` | `retrieveEngineByName(ScriptEngineManager scriptEngineManager, String engineName)` Retrieve a `ScriptEngine` from the given `ScriptEngineManager` by name, delegating to `ScriptEngineManager.getEngineByName(java.lang.String)` but throwing a descriptive exception if not found or if initialization failed.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### StandardScriptUtils

          public StandardScriptUtils()

  - ### 方法详细资料

    - #### retrieveEngineByName

          public static ScriptEngine retrieveEngineByName(ScriptEngineManager scriptEngineManager,
                                                          String engineName)

      Retrieve a `ScriptEngine` from the given `ScriptEngineManager` by name, delegating to `ScriptEngineManager.getEngineByName(java.lang.String)` but throwing a descriptive exception if not found or if initialization failed.
      参数:
        `scriptEngineManager` - the ScriptEngineManager to use
        `engineName` - the name of the engine
      返回:
        a corresponding ScriptEngine (never `null`)
      抛出:
        `IllegalArgumentException` - if no matching engine has been found
        `IllegalStateException` - if the desired engine failed to initialize