If I have a standalone main application. Say 20 classes. They all may need to interface with the beans defined by the spring configuration (ApplicationContext) at any time. I would boostrap the classpath application context at the main application entry point. But how do you reuse the already instantiated beans?
For example, it seems like a bad approach to setup the ClasspathApplicationContext as a singleton, but that would be the idea.
I thought I had seen a GlobalContextLocator or something along those lines but didn't seen an example on how to use it.