org.apache.geronimo.system.configuration.condition
Class JexlConditionParser

java.lang.Object
  extended by 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.


Constructor Summary
JexlConditionParser()
           
 
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
 

Constructor Detail

JexlConditionParser

public JexlConditionParser()
Method Detail

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.