Spring beans ID list Follow sajith dilshan Created May 14, 2015 06:39 Hi,Since the spring plugin is now opensource, is there a way for me to obtain a list of spring beans ids in a particular spring confguration file using the Spring pluging features?
The Spring plugin is open source? Did I miss that? I couldn't find the source anywhere, do you have a link?
Sorry, my bad. Spring API is opensource. Not the Spring plugin itself. Any idea how to obtain the spring bean ids list through the API?
Yes, this is possible.
If you want to just get the "plain" list of Spring Bean IDs use
com.intellij.spring.SpringManager#getLocalSpringModel(com.intellij.psi.xml.XmlFile)
to obtain a local model of the given file, then query it according to your needs.
That's what I was looking for. Thank you Yann.