public abstract class AbstractAopCacheProcessor extends Object implements AopCacheProcessor, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
protected static String |
SPLIT_KEY |
Constructor and Description |
---|
AbstractAopCacheProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
checkMetadata(CacheMetadata metadata) |
protected boolean |
doPreProcess(CacheMetadata metadata,
org.aopalliance.intercept.MethodInvocation invocation) |
Object |
endProcessor(CacheMetadata metadata,
org.aopalliance.intercept.MethodInvocation invocation) |
Cache |
getAopCache() |
void |
postProcess(CacheMetadata metadata,
org.aopalliance.intercept.MethodInvocation invocation,
Object result) |
boolean |
preProcess(CacheMetadata metadata,
org.aopalliance.intercept.MethodInvocation invocation)
前置处理操作
|
void |
setInterceptor(AopCacheInterceptor interceptor) |
protected static final String SPLIT_KEY
protected static final Logger LOGGER
public void setInterceptor(AopCacheInterceptor interceptor)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean preProcess(CacheMetadata metadata, org.aopalliance.intercept.MethodInvocation invocation)
AopCacheProcessor
preProcess
in interface AopCacheProcessor
protected boolean doPreProcess(CacheMetadata metadata, org.aopalliance.intercept.MethodInvocation invocation)
protected void checkMetadata(CacheMetadata metadata)
public void postProcess(CacheMetadata metadata, org.aopalliance.intercept.MethodInvocation invocation, Object result)
postProcess
in interface AopCacheProcessor
invocation
- 后置处理操作result
- 执行结果public Object endProcessor(CacheMetadata metadata, org.aopalliance.intercept.MethodInvocation invocation)
endProcessor
in interface AopCacheProcessor
invocation
- 流程结束操作,方法返回值作为AopCacheInterceptor。invoke(MethodInvocation
invocation)方法的返回值public Cache getAopCache()
Copyright © 2006–2018 TinyGroup. All rights reserved.