I have created a custom BeanFactory by extending DefaultListableBeanFactory for overriding the resolveBeanClass process. I need that for a certain bean definition to provide the class at runtime after I compile it using the Eclipse JDT compiler.
But I also need to reload this class as the source code changes. For this, I throwaway the classloader that loaded the class and chage the original bean definition that use to hold the compiled class. Anyway, there is a refference to the old class in the merged bean definition.
This merged beans are maintained in a map that is not visible to subclasses. I would like to have the posibility to simply reset that map in order to drop all the refference to the old classes.
Do you think that a modification to the current API is possible? If not, which would be the alternative?
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
Get latest updates about Open Source Projects, Conferences and News.