Author: buildbot
Date: Thu Dec 8 07:21:21 2016
New Revision: 1002435
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/models.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Dec 8 07:21:21 2016
@@ -1 +1 @@
-1772854
+1773192
Modified: websites/staging/sling/trunk/content/documentation/bundles/models.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/models.html
(original)
+++ websites/staging/sling/trunk/content/documentation/bundles/models.html Thu
Dec 8 07:21:21 2016
@@ -316,7 +316,7 @@ strategy by using adding <code>defaultIn
<p>In this case, the name is not used -- only the class name.</p>
<h2 id="collections">Collections<a class="headerlink" href="#collections"
title="Permanent link">¶</a></h2>
-<p>Lists and arrays are supported:</p>
+<p>Lists and arrays are supported by some injectors. For the details look at
the table given in <a href="#available-injectors">Available Injectors</a>:</p>
<div class="codehilite"><pre><span class="nd">@Model</span><span
class="o">(</span><span class="n">adaptables</span><span
class="o">=</span><span class="n">Resource</span><span class="o">.</span><span
class="na">class</span><span class="o">)</span>
<span class="kd">public</span> <span class="kd">class</span> <span
class="nc">MyModel</span> <span class="o">{</span>
@@ -326,7 +326,7 @@ strategy by using adding <code>defaultIn
</pre></div>
-<p>List injection for child resources works by injecting grand child resources
(since Sling Models Impl 1.0.6). For example, the class</p>
+<p>List injection for <em>child resources</em> works by injecting grand child
resources (since Sling Models Impl 1.0.6). For example, the class</p>
<div class="codehilite"><pre><span class="nd">@Model</span><span
class="o">(</span><span class="n">adaptables</span><span
class="o">=</span><span class="n">Resource</span><span class="o">.</span><span
class="na">class</span><span class="o">)</span>
<span class="kd">public</span> <span class="kd">class</span> <span
class="nc">MyModel</span> <span class="o">{</span>
@@ -562,7 +562,7 @@ Validation is only supported on models w
<td><code>Resource</code> objects</td>
<td>no</td>
<td>none</td>
-<td>if a parameterized type is passed, a <code>List<Resource></code> is
returned (the contents of which may be adapted to the target type).</td>
+<td>if a parameterized type <code>List</code> or <code>Collection</code> is
passed, a <code>List<Resource></code> is returned (the contents of which
may be adapted to the target type) filled with all child resources of the
resource looked up by the given name.</td>
</tr>
<tr>
<td>Request Attributes</td>
@@ -779,7 +779,7 @@ model, exported as a <code>java.lang.Str
<p>If a <code>Sling-Model-Packages</code> or <code>Sling-Model-Classes</code>
was already manually defined for the bundle the bnd plugin does nothing. So if
you want to migrate an existing project to use this plugin remove the existing
header definitions.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1771103 by sseifert on Thu, 24 Nov 2016 09:52:20 +0000
+ Rev. 1773192 by kwin on Thu, 8 Dec 2016 07:20:57 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache
Sling project