org.infinispan.cdi.interceptor
Class CacheRemoveEntryInterceptor

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

@Interceptor
public class CacheRemoveEntryInterceptor
extends Object

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

The interceptor that intercepts method annotated with @CacheRemoveEntry must do the following, generate a key based on InvocationContext using the specified CacheKeyGenerator, use this key to remove the entry in the cache. The remove 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 remove will not happen.

Author:
Kevin Pollet (C) 2011 SERLI

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

Constructor Detail

CacheRemoveEntryInterceptor

@Inject
public CacheRemoveEntryInterceptor(CacheResolver cacheResolver)
Method Detail

cacheRemoveEntry

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

-->

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