Skip to content

Introduce AnnotationConfigCapableApplicationContext interface to unify ACAC and ACWAC operations [SPR-8365] #13012

@spring-projects-issues

Description

@spring-projects-issues

Chris Beams opened SPR-8365 and commented

AnnotationConfigApplicationContext and AnnotationConfigWebApplicationContext both expose register and scan methods as of the completion of #12968. Introduce a new interface that declares each of these methods and refactor ACAC and ACWAC to implement it.

Beyond information value, this is useful for implementors of the ApplicationContextInitializer interface, in that users may create an ACI that works consistently across ACAC and ACWAC for standalone (e.g. testing, batch) or web (e.g. production) use.


Attachments:

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions