Spring Core Framework. Where are the beans located?

I am a junior Java developer and I am reading spring documentation from spring.io . I read that every bean that is registered in the file *.xmlthat spring uses to resolve dependencies is declared using tags <bean> </bean>.

My question is: in what data structure is the beans held after the xml file is read and the beans are created (created)?

thank

+4
source share
2 answers

, Spring, DefaultSingletonBeanRegistry , , ConcurrentHashMap . .

private final Map<String, Object> singletonObjects = new ConcurrentHashMap<String, Object>(64);
+7

Map, bean ids .

0

All Articles