Package org.chenile.stm.action
Class ScriptingStrategyBase
java.lang.Object
org.chenile.stm.action.ScriptingStrategyBase
- All Implemented Interfaces:
ScriptingStrategy
- Direct Known Subclasses:
OgnlScriptingStrategy
A base class for all script aware generic actions.
- Author:
- Raja Shankar Kolluru
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
executeBooleanExpression
(String script, Object context) executeGenericScript
(String script, Object context) protected abstract Object
static void
init()
protected abstract Object
parseExpression
(String code) protected Object
protected String
sanitizeExpression
(String code)
-
Field Details
-
parsedExpressionMap
-
-
Constructor Details
-
ScriptingStrategyBase
public ScriptingStrategyBase()
-
-
Method Details
-
executeBooleanExpression
- Specified by:
executeBooleanExpression
in interfaceScriptingStrategy
- Throws:
Exception
-
executeGenericScript
- Specified by:
executeGenericScript
in interfaceScriptingStrategy
- Throws:
Exception
-
getValue
- Throws:
Exception
-
parseExpression
- Throws:
Exception
-
init
public static void init() -
parseIt
- Parameters:
code
- the code to parse.- Returns:
- the parsed code. i.e. the code is given in an optimized form so that it is faster to execute.
- Throws:
ognl.OgnlException
-
sanitizeExpression
-