public class CacheOperationExpressionEvaluator
extends org.springframework.context.expression.CachedExpressionEvaluator
Performs internal caching for performance reasons
using AnnotatedElementKey.
| 限定符和类型 | 字段和说明 |
|---|---|
static Object |
NO_RESULT
Indicate that there is no result variable.
|
static Object |
RESULT_UNAVAILABLE
Indicate that the result variable cannot be used at all.
|
static String |
RESULT_VARIABLE
The name of the variable holding the result object.
|
| 构造器和说明 |
|---|
CacheOperationExpressionEvaluator() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
cacheName(String expression,
org.springframework.context.expression.AnnotatedElementKey methodKey,
org.springframework.expression.EvaluationContext evalContext) |
boolean |
condition(String conditionExpression,
org.springframework.context.expression.AnnotatedElementKey methodKey,
org.springframework.expression.EvaluationContext evalContext) |
org.springframework.expression.EvaluationContext |
createEvaluationContext(Method method,
Object[] args,
Object target,
Class<?> targetClass)
Create an
EvaluationContext without a return value. |
org.springframework.expression.EvaluationContext |
createEvaluationContext(Method method,
Object[] args,
Object target,
Class<?> targetClass,
Object result)
Create an
EvaluationContext. |
Object |
key(String expression,
org.springframework.context.expression.AnnotatedElementKey methodKey,
org.springframework.expression.EvaluationContext evalContext) |
boolean |
unless(String unlessExpression,
org.springframework.context.expression.AnnotatedElementKey methodKey,
org.springframework.expression.EvaluationContext evalContext) |
public static final Object NO_RESULT
public static final Object RESULT_UNAVAILABLE
public org.springframework.expression.EvaluationContext createEvaluationContext(Method method, Object[] args, Object target, Class<?> targetClass)
EvaluationContext without a return value.method - Methodargs - Object[]target - ObjecttargetClass - ClasscreateEvaluationContext(Method, Object[], Object, Class, Object)public org.springframework.expression.EvaluationContext createEvaluationContext(Method method, Object[] args, Object target, Class<?> targetClass, Object result)
EvaluationContext.method - the methodargs - the method argumentstarget - the target objecttargetClass - the target classresult - the return value (can be null) or
NO_RESULT if there is no return at this timepublic Object key(String expression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
public Object cacheName(String expression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
public boolean condition(String conditionExpression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
public boolean unless(String unlessExpression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
Copyright © 2024. All rights reserved.