|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wanghy.cache.interceptor.flush.CacheFlushAspectSupport org.wanghy.cache.interceptor.flush.CacheFlushInterceptor
Flushes part(s) of the cache when the intercepted method is executed.
Field Summary | |
private CacheProviderFacade |
cacheProviderFacade
Cache provider. |
Fields inherited from class org.wanghy.cache.interceptor.flush.CacheFlushAspectSupport |
|
Constructor Summary | |
CacheFlushInterceptor()
Constructor. |
Method Summary | |
protected FlushCache |
getCacheFlushAttribute(MethodInvocation methodInvocation)
Returns the metadata attribute of the intercepted method. |
Object |
invoke(MethodInvocation methodInvocation)
Flushes the part(s) of the cache. |
void |
setCacheFlushAttributes(Properties cacheFlushAttributes)
Set properties with method names as keys and caching-attribute descriptors (parsed via ) as values. |
void |
setCacheProviderFacade(CacheProviderFacade cacheProviderFacade)
Setter for the field . |
Methods inherited from class org.wanghy.cache.interceptor.flush.CacheFlushAspectSupport |
getCacheFlushAttributeSource, setCacheFlushAttributeSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private CacheProviderFacade cacheProviderFacade
Constructor Detail |
public CacheFlushInterceptor()
Method Detail |
protected FlushCache getCacheFlushAttribute(MethodInvocation methodInvocation)
methodInvocation
- the description of an invocation to the method.
public Object invoke(MethodInvocation methodInvocation) throws Throwable
invoke
in interface MethodInterceptor
methodInvocation
- the description of the intercepted method.
Throwable
public void setCacheFlushAttributes(Properties cacheFlushAttributes)
CacheFlushAttributeEditor
) as values.
Note: Method names are always applied to the target class, no matter if defined in an interface or the class itself.
Internally, a
will be created from the given properties.
NameMatchCacheFlushAttributeSource
NameMatchCacheFlushAttributeSource
public final void setCacheProviderFacade(CacheProviderFacade cacheProviderFacade)
cacheProviderFacade
.
cacheProviderFacade
- the new value to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |