Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11890

Spring-specific index file for component candidate classes

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0 M2
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Instead of or in addition to externally provided index arrangements (such as on JBoss), Spring could define its own index file: e.g. a "META-INF/spring.components" file listing pre-generated component candidate names (one per line) in order to shortcut the candidate component identification step in the classpath scanner. That file could get generated by a platform-specific deployer or simply by an application build task.

      Such a list in an index file wouldn't have to be definitive: Spring would still evaluate each and every one of those classes individually via ASM but wouldn't bother with evaluating any other classes in such a jar file. We could also consider using such a file for Spring-driven JPA entity scanning.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                snicoll St├ęphane Nicoll
                Reporter:
                juergen.hoeller Juergen Hoeller
                Last updater:
                Juergen Hoeller
              • Votes:
                2 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  48 weeks, 1 day ago