protected class L2CacheAspectSupport.L2CacheOperationContext extends Object implements L2CacheOperationInvocationContext<L2CacheOperation>
| 限定符和类型 | 字段和说明 |
|---|---|
private Object[] |
args |
private Collection<String> |
cacheNames |
private Collection<? extends L2Cache> |
caches |
private L2CacheAspectSupport.L2CacheOperationMetadata |
metadata |
private Object |
target |
| 构造器和说明 |
|---|
L2CacheOperationContext(L2CacheAspectSupport.L2CacheOperationMetadata metadata,
Object[] args,
Object target) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
canPutToCache(Object value) |
private Collection<String> |
createCacheNames(Collection<? extends L2Cache> caches) |
private boolean |
empty(Object value)
判断对象或集合是否为空
|
private Object[] |
extractArgs(Method method,
Object[] args) |
protected String |
generateKey(Object result) |
Object[] |
getArgs()
Return the argument list used to invoke the method.
|
private String |
getArgumentsCacheKey()
参数key
|
protected Collection<String> |
getCacheNames() |
protected Collection<? extends L2Cache> |
getCaches() |
private String |
getExpressionCacheKey(String expression)
表达式key
|
Method |
getMethod()
Return the method which was invoked.
|
L2CacheOperation |
getOperation()
Return the cache operation.
|
Object |
getTarget()
Return the target instance on which the method was invoked.
|
private final L2CacheAspectSupport.L2CacheOperationMetadata metadata
private final Object[] args
private final Object target
private final Collection<? extends L2Cache> caches
private final Collection<String> cacheNames
public L2CacheOperationContext(L2CacheAspectSupport.L2CacheOperationMetadata metadata, Object[] args, Object target)
public L2CacheOperation getOperation()
L2CacheOperationInvocationContextgetOperation 在接口中 L2CacheOperationInvocationContext<L2CacheOperation>public Object getTarget()
L2CacheOperationInvocationContextgetTarget 在接口中 L2CacheOperationInvocationContext<L2CacheOperation>public Method getMethod()
L2CacheOperationInvocationContextgetMethod 在接口中 L2CacheOperationInvocationContext<L2CacheOperation>public Object[] getArgs()
L2CacheOperationInvocationContextgetArgs 在接口中 L2CacheOperationInvocationContext<L2CacheOperation>private String getExpressionCacheKey(String expression)
expression - 表达式private String getArgumentsCacheKey()
protected boolean canPutToCache(@Nullable
Object value)
protected Collection<? extends L2Cache> getCaches()
protected Collection<String> getCacheNames()
private Collection<String> createCacheNames(Collection<? extends L2Cache> caches)
private boolean empty(Object value)
value - 对象Copyright © 2023. All rights reserved.