I have used Spring before but I am no expert and only used it for standard web-development previously.
Currently, I am working on a project where Spring is being used very differently. It's a stand-alone Swing app which has many displays and the user can switch between a display via a toolbar. When the display changes, all the components need to be destroyed (garbage-collected).
Currently, this is done by having separate ApplicationContexts associated with each display. So when the display is changed, the idea is that the AppCtx associated with the display is destroyed then a new app context is created (from a different XML file) to load the components in the new display.
Is this an appropriate way of using Spring? I don't know much about the internals of the Spring Container and the way the container manages the beans so I can't figure out whether it's a good thing or not.