Class FeignCachingInvocationHandlerFactory
java.lang.Object
org.springframework.cloud.openfeign.FeignCachingInvocationHandlerFactory
- All Implemented Interfaces:
feign.InvocationHandlerFactory
public class FeignCachingInvocationHandlerFactory
extends Object
implements feign.InvocationHandlerFactory
Allows Spring's @Cache* annotations to be declared on the feign client's methods.
- Author:
- Sam Kruglov
-
Nested Class Summary
Nested classes/interfaces inherited from interface feign.InvocationHandlerFactory
feign.InvocationHandlerFactory.Default, feign.InvocationHandlerFactory.MethodHandler
-
Constructor Summary
ConstructorDescriptionFeignCachingInvocationHandlerFactory
(feign.InvocationHandlerFactory delegateFactory, org.springframework.cache.interceptor.CacheInterceptor cacheInterceptor) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
FeignCachingInvocationHandlerFactory
public FeignCachingInvocationHandlerFactory(feign.InvocationHandlerFactory delegateFactory, org.springframework.cache.interceptor.CacheInterceptor cacheInterceptor)
-
-
Method Details
-
create
public InvocationHandler create(feign.Target target, Map<Method, feign.InvocationHandlerFactory.MethodHandler> dispatch) - Specified by:
create
in interfacefeign.InvocationHandlerFactory
-