/** * Sets the decorator of the annotated service object. {@code decorator} are applied to {@code service} in * order. * @deprecated Use {@link #setDecorators(Function[])} or {@link #setDecorators(List)} instead. */ @Deprecated public final U setDecorator( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>> decorator) { return setDecorators(requireNonNull(decorator, "decorator")); }
/** * Sets the decorator of the annotated service object. {@code decorator} are applied to {@code service} in * order. * @deprecated Use {@link #setDecorators(Function[])} or {@link #setDecorators(List)} instead. */ @Deprecated public final U setDecorator( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>> decorator) { return setDecorators(requireNonNull(decorator, "decorator")); }
/** * Sets the decorator of the annotated service object. {@code decorators} are applied to {@code service} in * order. */ @SafeVarargs public final U setDecorators( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>>... decorators) { return setDecorators(ImmutableList.copyOf(requireNonNull(decorators, "decorators"))); }
/** * Sets the decorator of the annotated service object. {@code decorators} are applied to {@code service} in * order. */ @SafeVarargs public final U setDecorators( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>>... decorators) { return setDecorators(ImmutableList.copyOf(requireNonNull(decorators, "decorators"))); }
/** * Sets the decorator of the annotated service object. {@code decorator} are applied to {@code service} in * order. * @deprecated Use {@link #setDecorators(Function[])} or {@link #setDecorators(List)} instead. */ @Deprecated public final U setDecorator( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>> decorator) { return setDecorators(requireNonNull(decorator, "decorator")); }
/** * Sets the decorator of the annotated service object. {@code decorator} are applied to {@code service} in * order. * @deprecated Use {@link #setDecorators(Function[])} or {@link #setDecorators(List)} instead. */ @Deprecated public final U setDecorator( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>> decorator) { return setDecorators(requireNonNull(decorator, "decorator")); }
/** * Sets the decorator of the annotated service object. {@code decorators} are applied to {@code service} in * order. */ @SafeVarargs public final U setDecorators( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>>... decorators) { return setDecorators(ImmutableList.copyOf(requireNonNull(decorators, "decorators"))); }
/** * Sets the decorator of the annotated service object. {@code decorators} are applied to {@code service} in * order. */ @SafeVarargs public final U setDecorators( Function<Service<HttpRequest, HttpResponse>, ? extends Service<HttpRequest, HttpResponse>>... decorators) { return setDecorators(ImmutableList.copyOf(requireNonNull(decorators, "decorators"))); }