- java.lang.Object
-
- jakarta.el.Expression
-
- jakarta.el.ValueExpression
-
- org.omnifaces.el.ValueExpressionWrapper
-
- org.omnifaces.component.output.cache.el.CachingValueExpression
-
- All Implemented Interfaces:
FacesWrapper<ValueExpression>
,Serializable
public class CachingValueExpression extends ValueExpressionWrapper
A value expression implementation that caches its main value at the moment it's evaluated and uses this cache value in future evaluations.- Author:
- Arjan Tijms
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CachingValueExpression(String name, ValueExpression valueExpression, Cache cache)
Construct the caching value expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Object
getValue(ELContext elContext)
int
hashCode()
-
Methods inherited from class org.omnifaces.el.ValueExpressionWrapper
getExpectedType, getExpressionString, getType, getValueReference, getWrapped, isLiteralText, isReadOnly, setValue
-
-
-
-
Constructor Detail
-
CachingValueExpression
public CachingValueExpression(String name, ValueExpression valueExpression, Cache cache)
Construct the caching value expression.- Parameters:
name
- The cache name.valueExpression
- The value expression to be wrapped.cache
- The cache itself.
-
-
Method Detail
-
getValue
public Object getValue(ELContext elContext)
- Overrides:
getValue
in classValueExpressionWrapper
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classValueExpressionWrapper
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classValueExpressionWrapper
-
-