org.qi4j.library.cache
Class ReturnCachedValueOnExceptionConcern

java.lang.Object
  extended by org.qi4j.api.concern.ConcernOf<InvocationHandler>
      extended by org.qi4j.library.cache.ReturnCachedValueOnExceptionConcern
All Implemented Interfaces:
InvocationHandler

@AppliesTo(value=Cached.class)
public class ReturnCachedValueOnExceptionConcern
extends ConcernOf<InvocationHandler>
implements InvocationHandler

Return value of @Cached calls on exceptions.

If an Exception occurs, try to reuse a previous result. Don't do anything on Throwables.


Field Summary
 
Fields inherited from class org.qi4j.api.concern.ConcernOf
next
 
Constructor Summary
ReturnCachedValueOnExceptionConcern()
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnCachedValueOnExceptionConcern

public ReturnCachedValueOnExceptionConcern()
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable