Class ScriptExecutorFactory

java.lang.Object
org.springframework.integration.scripting.jsr223.ScriptExecutorFactory

public final class ScriptExecutorFactory extends Object
The scripting configuration utilities.
Since:
2.1
Author:
David Turanski, Artem Bilan
  • Method Details

    • getScriptExecutor

      public static ScriptExecutor getScriptExecutor(String language)
    • deriveLanguageFromFileExtension

      public static String deriveLanguageFromFileExtension(String scriptLocation)
      Derive a scripting language from the provided script file name.
      Parameters:
      scriptLocation - the script file to consult for extension.
      Returns:
      the language name for the ScriptExecutor.
      Since:
      5.2