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

Key: YWSPR-93
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maurice Montgenie
Reporter: Christian Nelson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
YanaWare IdeaSpring

Terse spring xml collection constructs are flagged as invalid

Created: 31 Jan 07 07:35   Updated: 08 Mar 07 17:49
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(24 kb)
Environment: Windows Xp SP2

Build: 6,667


 Description  « Hide
Spring 1.2 added many terse forms for configuring beans and their properties with less xml. One of the short-cuts is useful when setting a single bean into a collection property. The <list>...</list> element is optional in this case.

An example:

JAVA:

class SomeBean {
private Collection things;
public void setThings(Collection things) { this.things = things; }
}

Spring:

<bean class="SomeBean">
<property name="things">
<bean class="OtherBean"/>
</property>
</bean>

See http://blog.arendsen.net/index.php/2005/07/09/spring-xml-way-simpler-since-12/ for a summary of changes. I've attached a screen shot as well.



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