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

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


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

OgnlConditionParser

public OgnlConditionParser()
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 © 2003-2007 Apache Software Foundation. All Rights Reserved.