|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TriggersRemoveInterceptor
Used by TriggersRemove to allow logic to be injected into the triggers remove API.
Remove workflow looks like:
TriggersRemove.when() is set to When.BEFORE_METHOD_INVOCATION, proceed with method invocation and capture the returned valueTriggersRemove.cacheName():
preInvokeTriggersRemove(Ehcache, MethodInvocation, Serializable)
TriggersRemove.when() is set to When.AFTER_METHOD_INVOCATION, proceed with method invocation and capture the returned valueTriggersRemove.when() is set to When.BEFORE_METHOD_INVOCATION, proceed with method invocation and capture the returned valueTriggersRemove.cacheName():
preInvokeTriggersRemoveAll(Ehcache, MethodInvocation)TriggersRemove.when() is set to When.AFTER_METHOD_INVOCATION, proceed with method invocation and capture the returned value
| Method Summary | |
|---|---|
boolean |
preInvokeTriggersRemove(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation,
java.io.Serializable key)
Called before the element is removed from the cache |
boolean |
preInvokeTriggersRemoveAll(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation)
Called before the elements are removed from the cache |
| Method Detail |
|---|
boolean preInvokeTriggersRemove(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation,
java.io.Serializable key)
cache - The cache used for this invocationmethodInvocation - The method invocation that has been interceptedkey - The generated cache key
boolean preInvokeTriggersRemoveAll(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation)
cache - The cache used for this invocationmethodInvocation - The method invocation that has been intercepted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||