Hi,
Is there a way to remove objects from the context at runtime?
I only find a way to add objects in the context , but not to remove...
De Fille
Hi,
Is there a way to remove objects from the context at runtime?
I only find a way to add objects in the context , but not to remove...
De Fille
Last edited by De Fille; 06-12-2006 at 10:00 AM.
Hi,
It isn't possible to remove the object. It can get quite involved with the dependencies. What are you trying to do? Maybe there are other approaches that can be used.
Cheers,
Mark
Hi,
I'm building a framework where plugins are activated depending on the received types. These plugings are instantiated using Spring.
My goal is that types can be added to the framework (add objects to the context) and that they can be removed also.
Filip
I just finished a similar framework (not quite the same thing, but quite similar) for a client, and the approach I took is that each plugin has its own context. This means that it can use objects from the root/framework context, but it clearly separates plugins from the framework itself and from the other plugins.
I'm not sure if the similar approach would work in your specific case, but it might be worth investigating.
- Aleks