Spring beans ID list

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?

4 comments
Comment actions Permalink

The Spring plugin is open source? Did I miss that? I couldn't find the source anywhere, do you have a link?

0
Comment actions Permalink

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?

0
Comment actions Permalink

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.

0
Comment actions Permalink

That's what I was looking for. Thank you Yann.

0

Please sign in to leave a comment.