Interface FeignDecorator

  • All Known Implementing Classes:
    FeignDecorators
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface FeignDecorator
    Used to decorate methods defined by feign interfaces. Decorators can be stacked, allowing multiple Decorators to be combined. See FeignDecorators.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.vavr.CheckedFunction1<java.lang.Object[],​java.lang.Object> decorate​(io.vavr.CheckedFunction1<java.lang.Object[],​java.lang.Object> invocationCall, java.lang.reflect.Method method, feign.InvocationHandlerFactory.MethodHandler methodHandler, feign.Target<?> target)
      Decorates the invocation of a method defined by a feign interface.
    • Method Detail

      • decorate

        io.vavr.CheckedFunction1<java.lang.Object[],​java.lang.Object> decorate​(io.vavr.CheckedFunction1<java.lang.Object[],​java.lang.Object> invocationCall,
                                                                                     java.lang.reflect.Method method,
                                                                                     feign.InvocationHandlerFactory.MethodHandler methodHandler,
                                                                                     feign.Target<?> target)
        Decorates the invocation of a method defined by a feign interface.
        Parameters:
        invocationCall - represents the call to the method. This should be decorated by the implementing class.
        method - the method of the feign interface that is invoked.
        methodHandler - the feign methodHandler that executes the http request.
        Returns:
        the decorated invocationCall