org.qi4j.library.cache
Class ReturnCachedValueOnExceptionConcern
java.lang.Object
org.qi4j.api.concern.ConcernOf<InvocationHandler>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReturnCachedValueOnExceptionConcern
public ReturnCachedValueOnExceptionConcern()
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable