Skip to content

Support module path scanning for "classpath*:" resource prefix #28506

Closed

Description

@sbrannen

In light of the findings from investigating #21515, we should introduce implicit support for scanning the module path whenever the classpath*: resource prefix is used.

This should allow existing applications relying on classpath*: semantics to work when migrating to the Java module system (for use cases not already supported by ClassLoader-based class path scanning).

For example, @ComponentScan should effectively work the same when an application is deployed on the class path or module path.

Activity

  1. added
    in: core
    type: enhancement
    on May 23, 2022
  2. added this to the 6.0.0-M5 milestone on May 23, 2022
  3. self-assigned this
    on May 23, 2022
  4. sbrannen commented on May 24, 2022

    @sbrannen
    MemberAuthor

    This issue has been resolved for inclusion in 6.0 M5.

    In the interim, feel free to try out 6.0 snapshots for applications deployed with patched modules.

    I've created a new repository for demonstrating the use of the Spring Framework with the Java Module System: https://github.com/sbrannen/spring-module-system

    That repository currently contains a single maven-surefire-patched-module project which demonstrates support for @ComponentScan in a patched module using Maven Surefire.

  5. added
    in: test
    on May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corein: testtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions