You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2016/04/17 08:09:19 UTC
svn commit: r1739545 -
/sling/site/trunk/content/documentation/bundles/models.mdtext
Author: olli
Date: Sun Apr 17 06:09:19 2016
New Revision: 1739545
URL: http://svn.apache.org/viewvc?rev=1739545&view=rev
Log:
use object instead of resource for parameter name to not imply a special type
Modified:
sling/site/trunk/content/documentation/bundles/models.mdtext
Modified: sling/site/trunk/content/documentation/bundles/models.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/models.mdtext?rev=1739545&r1=1739544&r2=1739545&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/models.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/models.mdtext Sun Apr 17 06:09:19 2016
@@ -92,7 +92,7 @@ Since Sling Models 1.2.0 there is anothe
::java
try {
- MyModel model = modelFactory.createModel(resource, MyModel.class);
+ MyModel model = modelFactory.createModel(object, MyModel.class);
} catch (Exception e) {
// give out error message that the model could not be instantiated.
// The exception contains further information.