AnnotatedService provides specialized information for annotated services such as Method, service instance, the default status, and so on.
However, AnnotatedService is an internal API so users should access it unsafely via ctx.config().service().as(AnnotatedService.class)
I propose to add AnnotatedServiceConfig to provide annotated service-specific information.
public final class AnnotatedServiceConfig extends ServiceConfig {
...
Object serviceObject() {
return object;
}
Method method() {
return method;
}
HttpStatus defaultStatus() {
...
}
...
}
AnnotatedServiceprovides specialized information for annotated services such asMethod, service instance, the default status, and so on.However,
AnnotatedServiceis an internal API so users should access it unsafely viactx.config().service().as(AnnotatedService.class)I propose to add
AnnotatedServiceConfigto provide annotated service-specific information.