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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecuteBooleanExpression(String script, Object context) executeGenericScript(String script, Object context) protected abstract Objectstatic voidinit()protected abstract ObjectparseExpression(String code) protected Objectprotected StringsanitizeExpression(String code)
-
Field Details
-
parsedExpressionMap
-
-
Constructor Details
-
ScriptingStrategyBase
public ScriptingStrategyBase()
-
-
Method Details
-
executeBooleanExpression
- Specified by:
executeBooleanExpressionin interfaceScriptingStrategy- Throws:
Exception
-
executeGenericScript
- Specified by:
executeGenericScriptin 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
-