Package de.gmorling.scriptabledataset
Class ScriptableDataSetConfig
java.lang.Object
de.gmorling.scriptabledataset.ScriptableDataSetConfig
Configures the usage of one scripting language with a prefix and a list of invocation handlers.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptableDataSetConfig
(String languageName, String prefix) Creates a new ScriptableDataSetConfig.ScriptableDataSetConfig
(String languageName, String prefix, List<ScriptInvocationHandler> handlers) Creates a new ScriptableDataSetConfig. -
Method Summary
Modifier and TypeMethodDescriptionGets the handlers.Gets the language name.Gets the prefix.
-
Constructor Details
-
ScriptableDataSetConfig
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
Gets the prefix.- Returns:
- the prefix
-
getLanguageName
Gets the language name.- Returns:
- the language name
-
getHandlers
Gets the handlers.- Returns:
- the handlers
-