org.apache.geronimo.system.configuration.condition
Class JexlConditionParser
java.lang.Object
org.apache.geronimo.system.configuration.condition.JexlConditionParser
- All Implemented Interfaces:
- ConditionParser
public class JexlConditionParser
- extends Object
- implements ConditionParser
Provides a simple facility to evaluate condition expressions using the
Jexl language.
This class is thread-safe.
Method Summary |
boolean |
evaluate(String expression)
Evaluate a condition expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JexlConditionParser
public JexlConditionParser()
evaluate
public boolean evaluate(String expression)
throws ConditionParserException
- Evaluate a condition expression.
- Specified by:
evaluate
in interface ConditionParser
- Parameters:
expression
- The condition expression to evaluate; must not be null
- Returns:
- True if the condition is satisfied
- Throws:
ConditionParserException
- Failed to evaluate condition expression
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.