Class ScriptableDataSetConfig

java.lang.Object
de.gmorling.scriptabledataset.ScriptableDataSetConfig

public class ScriptableDataSetConfig extends Object
Configures the usage of one scripting language with a prefix and a list of invocation handlers.
  • Constructor Details

    • ScriptableDataSetConfig

      public ScriptableDataSetConfig(String languageName, String prefix)
      Creates a new ScriptableDataSetConfig.
      Parameters:
      languageName - The name of the language as expected by the JSR 223 scripting engine manager, e.g. "jruby". May not be null.
      prefix - A prefix, which shall precede fields in a ScriptableDataSet in that language, e.g. "jruby:". May not be null.
    • ScriptableDataSetConfig

      public ScriptableDataSetConfig(String languageName, String prefix, List<ScriptInvocationHandler> handlers)
      Creates a new ScriptableDataSetConfig.
      Parameters:
      languageName - The name of the language as expected by the JSR 223 scripting engine manager, e.g. "jruby". May not be null.
      prefix - A prefix, which shall precede fields in a ScriptableDataSet in that language, e.g. "jruby:". May not be null.
      handlers - An optional list with handlers to be applied for fields with the given prefix.
  • Method Details

    • getPrefix

      public String getPrefix()
      Gets the prefix.
      Returns:
      the prefix
    • getLanguageName

      public String getLanguageName()
      Gets the language name.
      Returns:
      the language name
    • getHandlers

      public List<ScriptInvocationHandler> getHandlers()
      Gets the handlers.
      Returns:
      the handlers