I recently wrote a plugin that hooks into the IntelliJ spring support to register custom spring beans based on external metadata. The custom beans provider is registered like so:
<customModuleComponentsDiscoverer implementation="com.dealer.rc.plugin.BeansProvider" />
This works fine and the little bean icon shows up when I load the project. I also added a toolbar that shows the injected beans and has a "refresh" button, but I couldn't figure out how to refresh the spring data from my code. I basically want the same effect as if I'd re-imported my maven projects. Is there an easy way to accomplish this? I have access to the Project object.