How should each class in an application retrieve the Spring application context?

Posted by Derek Mahar on Stack Overflow See other posts from Stack Overflow or by Derek Mahar
Published on 2010-05-27T18:30:06Z Indexed on 2010/05/27 18:41 UTC
Read the original article Hit count: 157

Filed under:
|

How should each class in an application retrieve the Spring application context? Or, stated another way, how many times should an application invoke new ClassPathXmlApplicationContext("applicationContext.xml")?

© Stack Overflow or respective owner

Related posts about java

Related posts about spring