|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.structure.service.AbstractStructuredContentRuleProcessor
public abstract class AbstractStructuredContentRuleProcessor
This class is useful as a starting point for rule processors that need to execute MVEL rules. Sets up an LRU cache for rule processing and a convenience method for executing MVEL rules.
| Constructor Summary | |
|---|---|
AbstractStructuredContentRuleProcessor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.broadleafcommerce.cms.structure.service.StructuredContentRuleProcessor |
|---|
checkForMatch |
| Constructor Detail |
|---|
public AbstractStructuredContentRuleProcessor()
| Method Detail |
|---|
protected org.mvel2.ParserContext getParserContext()
protected Boolean executeExpression(String expression,
Map<String,Object> vars)
expression - vars -
public Map<String,String> getContextClassNames()
ParserContext}public void setContextClassNames(Map<String,String> contextClassNames)
ParserContext}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||