You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2014/06/24 21:35:19 UTC
svn commit: r913550 - in /websites/staging/sling/trunk/content: ./
documentation/bundles/models.html
Author: buildbot
Date: Tue Jun 24 19:35:18 2014
New Revision: 913550
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 Tue Jun 24 19:35:18 2014
@@ -1 +1 @@
-1604825
+1605163
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 Tue Jun 24 19:35:18 2014
@@ -130,6 +130,8 @@
</pre></div>
+<p>This header must contain all packages which contain model classes or interfaces. However, subpackages need not be listed
+individually, e.g. the header above will also pick up model classes in <code>org.apache.sling.models.it.models.sub</code>.</p>
<h1 id="client-code">Client Code</h1>
<p>Client code doesn't need to be aware that Sling Models is being used. It just uses the Sling Adapter framework:</p>
<div class="codehilite"><pre><span class="n">MyModel</span> <span class="n">model</span> <span class="o">=</span> <span class="n">resource</span><span class="o">.</span><span class="na">adaptTo</span><span class="o">(</span><span class="n">MyModel</span><span class="o">.</span><span class="na">class</span><span class="o">)</span>
@@ -375,7 +377,7 @@
</tbody>
</table>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1585125 by olli on Sat, 5 Apr 2014 16:01:10 +0000
+ Rev. 1605163 by justin on Tue, 24 Jun 2014 19:35:09 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project