Derives from the JCacheAspectSupport class which
contains the integration with Spring's underlying caching API.
JCacheInterceptor simply calls the relevant superclass method.
JCacheInterceptors are thread-safe.
org.springframework.cache.interceptor.CacheInterceptor
| Access | Constructor and Description |
|---|---|
| public | |
| public | JCacheInterceptor(Supplier<CacheErrorHandler>
a supplier for the error handler to use,
applying the default error handler if the supplier is not resolvable errorHandler)Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(final MethodInvocation
the method invocation joinpoint invocation)Implements org. Implement this method to perform extra treatments before and after the invocation. |
| JCacheInterceptor | back to summary |
|---|---|
| public JCacheInterceptor() Construct a new | |
| JCacheInterceptor | back to summary |
|---|---|
| public JCacheInterceptor(Supplier<CacheErrorHandler> errorHandler) Construct a new
| |
| invoke | back to summary |
|---|---|
| public Object invoke(final MethodInvocation invocation) throws Throwable Implements org. Doc from org. Implement this method to perform extra treatments before and
after the invocation. Polite implementations would certainly
like to invoke
| |