org.apache.geronimo.system.configuration.condition
Class OgnlConditionParser
java.lang.Object
org.apache.geronimo.system.configuration.condition.OgnlConditionParser
- All Implemented Interfaces:
- ConditionParser
public class OgnlConditionParser
- extends Object
- implements ConditionParser
Provides a simple facility to evaluate condition expressions using the
OGNL 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 |
OgnlConditionParser
public OgnlConditionParser()
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 © 2006 Apache Software Foundation. All Rights Reserved.