Skip to content

Make auto-configurations final and remove public members #32883

Open
@mhalbritter

Description

@mhalbritter

Our auto-configurations are public, but users should reference only the names of these classes. The contained methods, inner classes etc. are not part of the public API (even if they are public by accident or technical reasons).

Make sure that all contained methods and inner classes are not public.

If a @Bean method or inner class is public, deprecate it so that users get a warning that they should not use that method. After some time we will remove the deprecation and drop the public modifier, removing it from public exposed API.

This will leave us with public auto-configuration classes which do not expose any inner classes or methods as public API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme: structureIssues related to the structure of the project and its codetype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions