org.infinispan.cdi.interceptor
Class CacheRemoveAllInterceptor

java.lang.Object
  extended by org.infinispan.cdi.interceptor.CacheRemoveAllInterceptor

@Interceptor
public class CacheRemoveAllInterceptor
extends Object

Implementation class of the CacheRemoveAll interceptor. This interceptor uses the following algorithm describes in JSR-107.

The interceptor that intercepts method annotated with @CacheRemoveAll must do the following, remove all entries associated with the cache. The removeAll occurs after the method body is executed. This can be overridden by specifying a afterInvocation attribute value of false. If afterInvocation is true and the annotated method throws an exception, the removeAll will not happen.

Author:
Kevin Pollet (C) 2011 SERLI

Constructor Summary
CacheRemoveAllInterceptor(CacheResolver cacheResolver)
           
 
Method Summary
 Object cacheRemoveAll(InvocationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRemoveAllInterceptor

@Inject
public CacheRemoveAllInterceptor(CacheResolver cacheResolver)
Method Detail

cacheRemoveAll

public Object cacheRemoveAll(InvocationContext context)
                      throws Exception
Throws:
Exception

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.