Hi all,
I would like to know if this is possible to add new definitions of beans after we have initialized once the bean factory.
To be more clear I have the following lines in my application:
String[] configLocations = new String[] {
"path/Database.xml",
"path/DataAccessObjects.xml",
"path/BusinessObjects.xml",
"path/Services.xml",
"path/Components.xml",
"path/Delegate.xml"};
beanFactory = new ClassPathXmlApplicationContext(configLocations, false);
Those lines instantiate wired all my objects of the backend but actually I want also to wire the objects of my frontend. Therefore I would like to add other bean definitions to this factory after those lines (under) are executed.
I do not find any methods which allow to add new definitions of beans without removing the beans that has already been loaded.
Does anyone can tell if this is possible ? if yes how ?
Thanks in advance,
Tiggy


Reply With Quote