I am working with a incorrectly created spring application. Instead of using IOCs, objects that require links pull their links out of context:
BeanFactory b = SingletonBeanFactoryLocator.getInstance().
useBeanFactory("factory").getFactory();
Bean foo = (FOO)beanFactory.getBean("foo");
Putting aside design not related to the IOC, what are the other negative consequences of this? For example, does this have any specific performance implications? Is there a way that can lead to the creation of additional contexts or object references? Anything else unpleasant that this might cause?
source
share