History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-14187
Type: New Feature New Feature
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: Taras Tielkes
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Converter for properties that reference bean names

Created: 10 Aug 07 01:19   Updated: 10 Aug 07 13:37
Component/s: J2EE.Spring

File Attachments: 1. Text File bean-names-converter4.patch (7 kb)


Build: 7,118


 Description  « Hide
<bean class="org.springframework.aop.framework.ProxyFactoryBean">
  <property name="targetName" value="someBean"/>
</bean>

Some properties refer to other beans by name. This is often the case for infrastructure beans that are part of spring. These must sometimes refer to a bean that has scope prototype, and cannot use a regular bean reference for that reason.

IDEA (of course) does not recognize such references, but treats them as a regular properties of type String.

Perhaps a converter could be added that knows about some properties from Spring infrastructure classes that refer to bean names.
The benefit would be that such references are recognized, and included in "Find Usages", "Rename", etc.

Attached patch includes a hacked-together implementation: I've copy-pasted some code from SpringBeanReference, and the configuration format is a bit wacky. I can clean it up, but I'm curious to know what you think about the idea.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.