So ultimately I need to / want to use getBean(myObject, MyObject.class, args), but we're using a BeanFactory derived from the ContextSingletonBeanFactoryLocator
Code:
protected BeanFactory createBeanFactory(String factoryName) {
BeanFactoryLocator bfl = ContextSingletonBeanFactoryLocator.getInstance();
BeanFactoryReference ref = bfl.useBeanFactory(factoryName);
return ref.getFactory();
}
Given that I only have a BeanFactory and not an instance of ApplicationContext derived from say ClassPathXmlApplicationContext, how can I get a handle to the AbstractBeanFactory?
Thanks