1

Does Spring implements its own way to scan the class in packages or does it use a external library like 'reflection':

https://github.com/ronmamo/reflections

danronmoon
  • 3,814
  • 5
  • 34
  • 56

1 Answers1

2

A bit of both. They use ASM for reading the class files, but use their own MetadataReader so they can offer a more flexible inheritance model for annotations than Java offers out of the box (in plain Java, annotations are only inherited from a super class. In Spring, they are also inherited from super interfaces and meta annotations).

meriton
  • 68,356
  • 14
  • 108
  • 175
  • 1
    Thanks,just what I was looking for. Now another question, can i use the internal `MetaReader` of Spring as any other library like `reflection`?, and, there is any articule about advantages of the differents `MetaReades's` libraries? – Jesus Hernandez Barrios Dec 12 '20 at 23:43