Skip to content

Make AnnotatedService public #5382

@ikhoon

Description

@ikhoon

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() {
        ...
    }
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions