Back Forum Reply New

Application Context Instantiation Question

Dear everyone,

May I know if the configuration xml file will be read everytime in every instantiation of ApplicationContext?

I'm asking this because I'm just using Spring in certain layer of my application for  just one specific Spring feature.  I don't want to pass the ApplicationContext to all the classes in that layer, but instantiating an ApplicationContext in every class sounds a bad idea as I expect the instantiation would be quite expensive (File I/O, xml parsing) unless Spring Framework itself have done some smart caching behind the scene.

Thanks in advance.

There is an identical post in the quot;Core Containerquot; forum: showthread.php?t=28317

The other post has a reply.

-Arthur Loder
¥
Back Forum Reply New