public abstract class AbstractRuleProcessor<T> extends Object implements RuleProcessor<T>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
contextClassNames |
protected org.apache.commons.logging.Log |
LOG |
protected org.mvel2.ParserContext |
parserContext |
| Constructor and Description |
|---|
AbstractRuleProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
executeExpression(String expression,
Map<String,Object> vars)
Helpful method for processing a boolean MVEL expression and associated arguments.
|
Map<String,String> |
getContextClassNames()
List of class names to add to the MVEL ParserContext.
|
protected org.mvel2.ParserContext |
getParserContext()
Having a parser context that imports the classes speeds MVEL by up to 60%.
|
void |
setContextClassNames(Map<String,String> contextClassNames)
List of class names to add to the MVEL ParserContext.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckForMatchprotected final org.apache.commons.logging.Log LOG
protected org.mvel2.ParserContext parserContext
protected org.mvel2.ParserContext getParserContext()
protected Boolean executeExpression(String expression, Map<String,Object> vars)
expression - vars - public Map<String,String> getContextClassNames()
ParserContext}Copyright © 2022. All rights reserved.