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

Key: IDEADEV-20721
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Avdeev
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

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

"Injection value style" inspection: provide option to process local refs as well

Created: 03 Jun 07 22:49   Updated: 06 Sep 07 13:24
Component/s: J2EE.Spring
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,981


 Description  « Hide
At the moment the inspection+quickfix for the classic, verbose <ref bean="..."> style leaves "local" bean references alone.

This is a good default, as - strictly speaking - changing a "local" ref to a short normal ref (aka "bean ref") is a subtle change in semantics.
However, it would be nice to have an option on the inspection to shorten "local" <refs> as well.

The original motivation for "local" refs was to let the XML parser (through usage of IDREF in DTD) validate such references.
Since spring pre-instantiates singletons (and thus "validates" most bean references), the practical value of such a feature is minimal in my opinion - especially in this modern age of IDEs.

Request:

  1. Add configuration option to inspection "Spring Injection Value Style Inspection"
  2. Option label: something like "Shorten <ref local="...">"
  3. Default setting should be "off"
  4. When enabled, should apply to <ref local="abc"/> inside <constructor-arg>, <property>, <entry> and <key>


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