0

Where is spring context stored? In which data structure? ( I heard it's just a Map, is it?) ( I don't mean the path to the xml file, I mean when Spring read bean definitions it stored the information about it somewhere and injects it)

J.J. Beam
  • 2,612
  • 2
  • 26
  • 55
  • 1
    possible reference https://stackoverflow.com/questions/25565706/spring-core-framework-where-are-the-beans-hold – silentsudo May 29 '20 at 16:26

1 Answers1

1
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry

private final Map<String, Object> singletonObjects = new ConcurrentHashMap(256);

Singleton beans are stored here.

Gurkan İlleez
  • 1,503
  • 1
  • 10
  • 12