org.apache.tapestry.services.impl
Class ExpressionCacheImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionCacheImpl
public ExpressionCacheImpl()
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.