com.googlecode.ehcache.annotations
Class DefaultTriggersRemoveInterceptor

java.lang.Object
  extended by com.googlecode.ehcache.annotations.DefaultTriggersRemoveInterceptor
All Implemented Interfaces:
TriggersRemoveInterceptor

public class DefaultTriggersRemoveInterceptor
extends java.lang.Object
implements TriggersRemoveInterceptor

Default interceptor that always removes values.

Version:
$Revision: 656 $
Author:
Eric Dalquist

Field Summary
static DefaultTriggersRemoveInterceptor INSTANCE
           
 
Constructor Summary
DefaultTriggersRemoveInterceptor()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultTriggersRemoveInterceptor INSTANCE
Constructor Detail

DefaultTriggersRemoveInterceptor

public DefaultTriggersRemoveInterceptor()
Method Detail

preInvokeTriggersRemove

public boolean preInvokeTriggersRemove(net.sf.ehcache.Ehcache cache,
                                       org.aopalliance.intercept.MethodInvocation methodInvocation,
                                       java.io.Serializable key)
Description copied from interface: TriggersRemoveInterceptor
Called before the element is removed from the cache

Specified by:
preInvokeTriggersRemove in interface TriggersRemoveInterceptor
Parameters:
cache - The cache used for this invocation
methodInvocation - The method invocation that has been intercepted
key - The generated cache key
Returns:
true if the element should be removed, false if the remove should be skipped.

preInvokeTriggersRemoveAll

public boolean preInvokeTriggersRemoveAll(net.sf.ehcache.Ehcache cache,
                                          org.aopalliance.intercept.MethodInvocation methodInvocation)
Description copied from interface: TriggersRemoveInterceptor
Called before the elements are removed from the cache

Specified by:
preInvokeTriggersRemoveAll in interface TriggersRemoveInterceptor
Parameters:
cache - The cache used for this invocation
methodInvocation - The method invocation that has been intercepted
Returns:
true if the elements should be removed, false if the remove should be skipped.


Copyright © 2011. All Rights Reserved.