Hi. I have a problem with my AOP subject's final project.
I need to do a little application that show's a code snippet with an error (for instance, something posted as a question on this forum), runs that class, shows what fails and then runs the same snippet but with the error corrected. After much bargaining, we got the teacher to let us actually load the .class files necessary to run the problem and the solution, which I've managed to do using the
Java Reflection API. The problem is that many of these problems are Spring AOP's, and they need their applicationContext.xml file to run.
My question is: how can I tell the classes which I'm loading and running at runtime to use that XML file???
I hope I made myself clear. If not, please let me know.
Thanks in advance.
HP