org.apache.tapestry.services.impl
Class ExpressionCacheImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.ExpressionCacheImpl
All Implemented Interfaces:
EventListener, ClassCacheInspector, ReportStatusListener, ResetEventListener, ExpressionCache

public class ExpressionCacheImpl
extends Object
implements ExpressionCache, ResetEventListener, ReportStatusListener, ClassCacheInspector

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
ExpressionCacheImpl()
           
 
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.
 void initializeService()
           
 void reportStatus(ReportStatusEvent event)
           
 void resetEventDidOccur()
           
 void setEvaluator(ExpressionEvaluator evaluator)
           
 void setServiceId(String serviceId)
           
 boolean shouldCache(Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionCacheImpl

public ExpressionCacheImpl()
Method Detail

initializeService

public void initializeService()

resetEventDidOccur

public void resetEventDidOccur()
Specified by:
resetEventDidOccur in interface ResetEventListener

shouldCache

public boolean shouldCache(Class type)
Specified by:
shouldCache in interface ClassCacheInspector

reportStatus

public void reportStatus(ReportStatusEvent event)
Specified by:
reportStatus in interface ReportStatusListener

getCompiledExpression

public Object getCompiledExpression(Object target,
                                    String expression)
Description copied from interface: ExpressionCache
Returns the compiled ognl expression for the given target object class / expression combination.

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

getCompiledExpression

public Object getCompiledExpression(String expression)
Description copied from interface: ExpressionCache
Returns the compiled form of the OGNL expression.

Specified by:
getCompiledExpression in interface ExpressionCache

setServiceId

public void setServiceId(String serviceId)

setEvaluator

public void setEvaluator(ExpressionEvaluator evaluator)


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