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 2016/12/10 08:35:50 UTC
svn commit: r1002559 - in /websites/staging/sling/trunk/content: ./
documentation/bundles/context-aware-configuration/context-aware-configuration.html
Author: buildbot
Date: Sat Dec 10 08:35:50 2016
New Revision: 1002559
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Dec 10 08:35:50 2016
@@ -1 +1 @@
-1773504
+1773506
Modified: websites/staging/sling/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.html Sat Dec 10 08:35:50 2016
@@ -334,6 +334,19 @@ the applications/libraries you use, or y
</pre></div>
</td></tr></table>
+<p>In you project define a test dependency (additionally the sling-mock dependency is required):</p>
+<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre>1
+2
+3
+4
+5</pre></div></td><td class="code"><div class="codehilite"><pre><span class="nt"><dependency></span>
+ <span class="nt"><groupId></span>org.apache.sling<span class="nt"></groupId></span>
+ <span class="nt"><artifactId></span>org.apache.sling.testing.caconfig-mock-plugin<span class="nt"></artifactId></span>
+ <span class="nt"><scope></span>test<span class="nt"></scope></span>
+<span class="nt"></dependency></span>
+</pre></div>
+</td></tr></table>
+
<p>Full example: <a href="https://github.com/apache/sling/blob/trunk/contrib/extensions/contextaware-config/testing/mocks/caconfig-mock-plugin/src/test/java/org/apache/sling/testing/mock/caconfig/ContextPluginsTest.java">Apache Sling Context-Aware Configuration Mock Plugin Test</a></p>
<h1 id="customizing-the-configuration-lookup">Customizing the configuration lookup<a class="headerlink" href="#customizing-the-configuration-lookup" title="Permanent link">¶</a></h1>
<p>The Context-Aware Configuration implementation provides a set of Service Provider Interfaces (SPI) that allows you to overlay, enhance or replace the default implementation and adapt it to your needs.</p>
@@ -354,7 +367,7 @@ the applications/libraries you use, or y
<li><a href="https://adapt.to/2016/en/schedule/sling-context-aware-configuration.html">Sling Context-Aware Configuration - Talk from adaptTo() 2016</a></li>
</ul>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1773504 by sseifert on Sat, 10 Dec 2016 08:31:43 +0000
+ Rev. 1773506 by sseifert on Sat, 10 Dec 2016 08:35:40 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project