How to refactor existing singletons (i.e. old school singleton, not Spring's "singleton" beans) so that their instance can be instantiated and configured by Spring IOC container but legacy code can still access them in usual way (i.e. mysingleton.getInstance())? We have lot of legacy code that I don't have time right now to refactor to use dependency injection but still want to use IOC to make easy configure of singleton instance.
Evil Singleton and IOC Container Page Title Module
Move Remove Collapse