public final class AnnotatedServiceExtensions extends Object
RequestConverterFunctions, ResponseConverterFunctions
and ExceptionHandlerFunctions into three different lists from a single Iterable.| Constructor and Description |
|---|
AnnotatedServiceExtensions(List<RequestConverterFunction> requestConverters,
List<ResponseConverterFunction> responseConverters,
List<ExceptionHandlerFunction> exceptionHandlers) |
| Modifier and Type | Method and Description |
|---|---|
List<ExceptionHandlerFunction> |
exceptionHandlers()
Returns the specified
ExceptionHandlerFunctions with the annotated service. |
static AnnotatedServiceExtensions |
ofExceptionHandlersAndConverters(Iterable<?> exceptionHandlersAndConverters)
Creates a new instance with the specified
exceptionHandlersAndConverters. |
List<RequestConverterFunction> |
requestConverters()
Returns the specified
RequestConverterFunctions with the annotated service. |
List<ResponseConverterFunction> |
responseConverters()
Returns the specified
ResponseConverterFunctions with the annotated service. |
public AnnotatedServiceExtensions(List<RequestConverterFunction> requestConverters, List<ResponseConverterFunction> responseConverters, List<ExceptionHandlerFunction> exceptionHandlers)
public static AnnotatedServiceExtensions ofExceptionHandlersAndConverters(Iterable<?> exceptionHandlersAndConverters)
exceptionHandlersAndConverters.public List<RequestConverterFunction> requestConverters()
RequestConverterFunctions with the annotated service.public List<ResponseConverterFunction> responseConverters()
ResponseConverterFunctions with the annotated service.public List<ExceptionHandlerFunction> exceptionHandlers()
ExceptionHandlerFunctions with the annotated service.Copyright © 2020 LeanCloud. All rights reserved.