public final class AnnotatedServiceElement extends Object
| Modifier and Type | Method and Description |
|---|---|
HttpService |
buildSafeDecoratedService(Function<? super HttpService,? extends HttpService> localDecorator)
Builds a safe decorated
HttpService by wrapping the localDecorator with
exceptionHandlingDecorators. |
Function<? super HttpService,? extends HttpService> |
decorator()
Returns the decorator of the
AnnotatedService which will be evaluated at service
registration time. |
Route |
route()
Returns the
Route. |
AnnotatedService |
service()
Returns the
AnnotatedService that will handle the request. |
String |
toString() |
public AnnotatedService service()
AnnotatedService that will handle the request.public Function<? super HttpService,? extends HttpService> decorator()
AnnotatedService which will be evaluated at service
registration time.public HttpService buildSafeDecoratedService(Function<? super HttpService,? extends HttpService> localDecorator)
HttpService by wrapping the localDecorator with
exceptionHandlingDecorators.localDecorator - a decorator to decorate the service with.Copyright © 2020 LeanCloud. All rights reserved.