<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Everything is wrong &#187; Spring</title>
	<atom:link href="http://everythingiswrong.free.fr/index.php/tag/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://everythingiswrong.free.fr</link>
	<description>Un blog dédié à l&#039;informatique en général</description>
	<lastBuildDate>Wed, 06 Oct 2021 21:20:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Bean Spring et java.util.List</title>
		<link>http://everythingiswrong.free.fr/index.php/2012/01/25/bean-spring-et-java-util-list/</link>
		<comments>http://everythingiswrong.free.fr/index.php/2012/01/25/bean-spring-et-java-util-list/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 22:25:04 +0000</pubDate>
		<dc:creator>Yan</dc:creator>
				<category><![CDATA[Java J2EE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://everythingiswrong.free.fr/?p=1803</guid>
		<description><![CDATA[Comment définir une liste d'objet dans Springframework...]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Voici deux façons de déclarer une liste d&#8217;objet en tant que propriété d&#8217;un bean Spring :</p>
<ul>
<li>A partir d&#8217;une liste de valeur</li>
</ul>
<pre class="brush: xml; gutter: true; first-line: 1">&lt;bean name="name" class="Class"&gt;
      &lt;property name="myList"&gt;
            &lt;value&gt;a&lt;/value&gt;
            &lt;value&gt;b&lt;/value&gt;
            &lt;value&gt;c&lt;/value&gt;
      &lt;/property&gt;
&lt;/bean&gt;</pre>
<ul>
<li>A partir d&#8217;une valeur unique à décomposer en plusieurs valeurs (sorte de CSV)</li>
</ul>
<pre class="brush: xml; gutter: true; first-line: 1">&lt;bean id="name" class="Class"&gt;
    &lt;property name="myList"&gt;
        &lt;bean class="org.springframework.util.CollectionUtils" factory-method="arrayToList"&gt;
            &lt;constructor-arg type="java.lang.Object"&gt;
                &lt;bean class="org.springframework.util.StringUtils" factory-method="tokenizeToStringArray"&gt;
                    &lt;constructor-arg type="java.lang.String" value="a b c"/&gt;
                    &lt;constructor-arg type="java.lang.String" value=" "/&gt;
                &lt;/bean&gt;
            &lt;/constructor-arg&gt;
        &lt;/bean&gt;
    &lt;/property&gt;
&lt;/bean&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://everythingiswrong.free.fr/index.php/2012/01/25/bean-spring-et-java-util-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
