org.apache.tapestry.services
Interface ExpressionCache

All Known Implementing Classes:
ExpressionCacheImpl

public interface ExpressionCache

Cache of compiled OGNL expressions.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 Object getCompiledExpression(Object target, String expression)
          Returns the compiled ognl expression for the given target object class / expression combination.
 Object getCompiledExpression(String expression)
          Returns the compiled form of the OGNL expression.
 

Method Detail

getCompiledExpression

Object getCompiledExpression(String expression)
Returns the compiled form of the OGNL expression.

Throws:
org.apache.hivemind.ApplicationRuntimeException - if the expression is not valid

getCompiledExpression

Object getCompiledExpression(Object target,
                             String expression)
Returns the compiled ognl expression for the given target object class / expression combination.

Parameters:
target - The object this expression is to be used for.
expression - The expression.
Returns:
The compiled (or new if neccessary) ognl statement.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.