Description
Juergen Hoeller opened SPR-11890 and commented
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.
Issue Links:
- Introduce a mechanism for abstract types at component scanning [SPR-11663] #16286 Introduce a mechanism for abstract types at component scanning
- DATACMNS-977 Introduce support for component index creation in Spring 5
- Backport @Indexed to the 4.3.x line [SPR-14710] #19275 Backport
@Indexed
to the 4.3.x line - Document candidates index mechanism [SPR-14711] #19276 Document candidates index mechanism
- Add the ability to create an optional bean reference by name [SPR-14712] #19277 Add the ability to create an optional bean reference by name
- Using component scanning in signed jars is very slow [SPR-4694] #9371 Using component scanning in signed jars is very slow
- Cache ASM metadata at the context level [SPR-14654] #19219 Cache ASM metadata at the context level
- Allow Application Server to Supply Annotation Scanning [SPR-10354] #14986 Allow Application Server to Supply Annotation Scanning
- Improve performance of #getBeanNamesForType() while the BeanFactory configuration is not yet frozen [SPR-13610] #18188 Improve performance of #getBeanNamesForType() while the BeanFactory configuration is not yet frozen
2 votes, 11 watchers