I wrote an application which uses spring framework. now i wanted to write a code which consumes some inputs from somewhere and then produce some spring configuration xml file. the problem is that, can i give these files to spring when my application is running and my applications is passed over “XMLApplicationContext” creation object?
Share
You are talking about having multiple
ApplicaitonContextbase on user input right? This is doable. Take a look atFileSystemXmlApplicationContextin Spring framework. You can generate the XML, and pass the xml toFileSystemXmlApplicationContextto create new application context.