Performs internal caching for performance reasons
using AnnotatedElementKey.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final CacheEvaluationContextFactory | |
| private final Map | |
| public static final Object | NO_RESULT
Indicate that there is no result variable. |
| public static final Object | RESULT_UNAVAILABLE
Indicate that the result variable cannot be used at all. |
| public static final String | RESULT_VARIABLE
The name of the variable holding the result object. |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | |
| public EvaluationContext | Returns: the evaluation contextthe current caches caches, Method the method method, Object[] the method arguments args, Object the target object target, Class<?> the target class targetClass, Method targetMethod, Object the return value (can be result)null) or
NO_RESULT if there is no return at this timeCreate an |
| public Object | |
| public boolean |
| conditionCache | back to summary |
|---|---|
| private final Map<CachedExpressionEvaluator. | |
| evaluationContextFactory | back to summary |
|---|---|
| private final CacheEvaluationContextFactory evaluationContextFactory | |
| keyCache | back to summary |
|---|---|
| private final Map<CachedExpressionEvaluator. | |
| NO_RESULT | back to summary |
|---|---|
| public static final Object NO_RESULT Indicate that there is no result variable. | |
| RESULT_UNAVAILABLE | back to summary |
|---|---|
| public static final Object RESULT_UNAVAILABLE Indicate that the result variable cannot be used at all. | |
| RESULT_VARIABLE | back to summary |
|---|---|
| public static final String RESULT_VARIABLE The name of the variable holding the result object. | |
| unlessCache | back to summary |
|---|---|
| private final Map<CachedExpressionEvaluator. | |
| CacheOperationExpressionEvaluator | back to summary |
|---|---|
| public CacheOperationExpressionEvaluator(CacheEvaluationContextFactory evaluationContextFactory) | |
| clear | back to summary |
|---|---|
| pack-priv void clear() Clear all caches. | |
| condition | back to summary |
|---|---|
| public boolean condition(String conditionExpression, AnnotatedElementKey methodKey, EvaluationContext evalContext) | |
| createEvaluationContext | back to summary |
|---|---|
| public EvaluationContext createEvaluationContext(Collection<? extends Cache> caches, Method method, Object[] args, Object target, Class<?> targetClass, Method targetMethod, Object result) Create an
| |
| key | back to summary |
|---|---|
public Object key(String keyExpression, AnnotatedElementKey methodKey, EvaluationContext evalContext)
| |
| unless | back to summary |
|---|---|
| public boolean unless(String unlessExpression, AnnotatedElementKey methodKey, EvaluationContext evalContext) | |