Package org.fugerit.java.script.helper
Interface EvalScript
- All Known Implementing Classes:
EvalScriptWithDataModel
,EvalScriptWithJsonDataModel
public interface EvalScript
Simple interface for script handling.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
It will handle a script with no data model Any exception will be converted toConfigRuntimeException
default Object
It will handle a script and bind a data model.default Object
It will handle a script with no data model.It will handle a script and bind a data model.
-
Method Details
-
handle
It will handle a script and bind a data model. Any exception will be converted toConfigRuntimeException
- Parameters:
reader
- the reader over scriptdataModel
- the data model to bind- Returns:
- the result of script processing
-
handle
It will handle a script with no data model Any exception will be converted toConfigRuntimeException
- Parameters:
reader
- the reader over script- Returns:
- the result of script processing
-
handleEx
It will handle a script and bind a data model. Any class implementing EvalScript will need to provide at least this method.- Parameters:
reader
- the reader over scriptdataModel
- the data model to bind- Returns:
- the result of script processing
- Throws:
ScriptException
- in case of script handling issues
-
handleEx
It will handle a script with no data model.- Parameters:
reader
- the reader over script- Returns:
- the result of script processing
- Throws:
ScriptException
- in case of script handling issues
-