Author: buildbot
Date: Sun Apr 28 14:05:46 2013
New Revision: 860204
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/apache-sling-commons-thread-pool.html
websites/staging/sling/trunk/content/documentation/the-sling-engine/adapters.html
websites/staging/sling/trunk/content/site/.htaccess
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Apr 28 14:05:46 2013
@@ -1 +1 @@
-1476699
+1476774
Modified:
websites/staging/sling/trunk/content/documentation/bundles/apache-sling-commons-thread-pool.html
==============================================================================
---
websites/staging/sling/trunk/content/documentation/bundles/apache-sling-commons-thread-pool.html
(original)
+++
websites/staging/sling/trunk/content/documentation/bundles/apache-sling-commons-thread-pool.html
Sun Apr 28 14:05:46 2013
@@ -86,12 +86,12 @@
<h1>Apache Sling Commons Thread Pool</h1>
- <p>The Apache Sling Commons Thread Pool bundle provides a thread pool
services. All thread pools are managed by the
<em>{nl:org.apache.sling.commons.threads.ThreadPoolManager}</em>. This service
can be used to get a thread pool.</p>
+ <p>The Apache Sling Commons Thread Pool bundle provides a thread pool
services. All thread pools are managed by the
<code>org.apache.sling.commons.threads.ThreadPoolManager</code>. This service
can be used to get a thread pool.</p>
<p>Thread pools are managed by name - there is a default thread pool and
custom thread pools can be generated on demand using a unique name.</p>
<p>The thread pools are actually wrappers around the thread pool support
(executer) from the Java library. The advantage of using this thread pool
service is, that the pools can be configured and managed through OSGi
configurations. In addition the bundle contains a plugin for the Apache Felix
Web Console.</p>
-<p>When using the {nl:ThreadPoolMananger} it is important to release a thread
pool using the manager after it has been used.</p>
+<p>When using the <code>ThreadPoolMananger</code> it is important to release a
thread pool using the manager after it has been used.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1341376 by fmeschbe on Tue, 22 May 2012 09:41:06 +0000
+ Rev. 1476774 by dklco on Sun, 28 Apr 2013 14:05:35 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache
Sling project
Modified:
websites/staging/sling/trunk/content/documentation/the-sling-engine/adapters.html
==============================================================================
---
websites/staging/sling/trunk/content/documentation/the-sling-engine/adapters.html
(original)
+++
websites/staging/sling/trunk/content/documentation/the-sling-engine/adapters.html
Sun Apr 28 14:05:46 2013
@@ -113,7 +113,7 @@
</pre></div>
-<p>This method is called to get a view of the same object in terms of another
class. Examples of implementations of this method is the Sling
<code>ResourceResolver</code> implementation providing adapting to a JCR
session and the Sling JCR based <code>Resource</code> implementation providing
adapting to a JCR node.</p>
+<p>This method is called to get a view of the same object in terms of another
class. Examples of implementations of this method are the Sling
<code>ResourceResolver</code> implementation providing adapting to a JCR
session and the Sling JCR based <code>Resource</code> implementation providing
adapting to a JCR node.</p>
<h2 id="extending-adapters">Extending Adapters</h2>
<p>Sometimes an <code>Adaptable</code> implementation cannot foresee future
uses and requirements. To cope with such extensibility requirements two
interfaces and an abstract base class are defined:</p>
<ul>
@@ -151,10 +151,10 @@
</pre></div>
-<p>Implementations of this interface are registered as OSGi services providing
two lists: The list of classes wich may be adapted (property named
<em>adaptables</em>) and the list of classes to which the adapted class may be
adapted (property named <em>adapters</em>). A good example of an Class
implementing <code>AdapterFactory</code> is the
<code>SlingScriptAdapterFactory</code>.</p>
+<p>Implementations of this interface are registered as OSGi services providing
two lists: The list of classes which may be adapted (property named
<em>adaptables</em>) and the list of classes to which the adapted class may be
adapted (property named <em>adapters</em>). A good example of an Class
implementing <code>AdapterFactory</code> is the
<code>SlingScriptAdapterFactory</code>.</p>
<p><code>AdapterFactory</code> services are gathered by a
<code>AdapterManager</code> implementation for use by consumers. Consumers
should not care for <code>AdapterFactory</code> services.</p>
<h2 id="adaptermanager">AdapterManager</h2>
-<p>The <code>AdapterManager</code> is defines the service interface for the
genralized and extensible use of <code>AdapterFactory</code> services. Thus the
adapter manager may be retrieved from the service registry to try to adapt
whatever object that needs to be adapted - provided appropriate adapters
exist.</p>
+<p>The <code>AdapterManager</code> is defines the service interface for the
generalized and extensible use of <code>AdapterFactory</code> services. Thus
the adapter manager may be retrieved from the service registry to try to adapt
whatever object that needs to be adapted - provided appropriate adapters
exist.</p>
<p>The <code>AdapterManager</code> interface is defined as follows:</p>
<div class="codehilite"><pre>/**
* Returns an adapter object of the requested <span
class="nt"><code></span>AdapterType<span class="nt"></code></span>
for
@@ -176,12 +176,12 @@
</pre></div>
-<p>Any object can theoretically be adapted to any class even if it does not
implement the <code>Adaptable</code> interface, if an
<code>AdapterFactory</code> service delivers a <code>getAdapter()</code> method
which adapts an object to another one. To check if there's any existing
<code>AdapterFactory</code> which can adapt a given object to another one the
<code>AdapterManager</code> service with it's <code>getAdapter()</code> method
does the job. So the <code>Adaptable</code> interface merely is an indicator
that the object provides built-in support for beeing adapted.</p>
+<p>Any object can theoretically be adapted to any class even if it does not
implement the <code>Adaptable</code> interface, if an
<code>AdapterFactory</code> service delivers a <code>getAdapter()</code> method
which adapts an object to another one. To check if there's any existing
<code>AdapterFactory</code> which can adapt a given object to another one the
<code>AdapterManager</code> service with its <code>getAdapter()</code> method
does the job. So the <code>Adaptable</code> interface merely is an indicator
that the object provides built-in support for being adapted.</p>
<h2 id="slingadaptable">SlingAdaptable</h2>
<p>The <code>SlingAdaptable</code> class is an implementation of the
<code>Adaptable</code> interface which provides built-in support to call the
<code>AdapterManager</code> to provide an adapter from the
<code>Adaptable</code> object to the requested class.</p>
-<p>An example of extending the <code>SlingAdaptable</code> class will be the
Sling JCR based <code>Resource</code> implementation. This way, such a resource
may be adapted to a <code>SlingScript</code> by means of an appropriatley
programmed <code>AdapterFactory</code> (see below).</p>
+<p>An example of extending the <code>SlingAdaptable</code> class will be the
Sling JCR based <code>Resource</code> implementation. This way, such a resource
may be adapted to a <code>SlingScript</code> by means of an appropriately
programmed <code>AdapterFactory</code> (see below).</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1341376 by fmeschbe on Tue, 22 May 2012 09:41:06 +0000
+ Rev. 1476774 by dklco on Sun, 28 Apr 2013 14:05:35 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache
Sling project
Modified: websites/staging/sling/trunk/content/site/.htaccess
==============================================================================
--- websites/staging/sling/trunk/content/site/.htaccess (original)
+++ websites/staging/sling/trunk/content/site/.htaccess Sun Apr 28 14:05:46 2013
@@ -16,4 +16,5 @@ Redirect Permanent /site/sling-testing-t
Redirect Permanent /site/testing-sling-based-applications.html
/documentation/tutorials-how-tos/testing-sling-based-applications.html
Redirect Permanent /site/project-license.html
/project-information/project-license.html
Redirect Permanent /site/manipulating-content-the-slingpostservlet.html
/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html
-Redirect Permanent
/site/accessing-filesystem-resources-extensionsfsresource.html
/documentation/bundles/accessing-filesystem-resources-extensions-fsresource.html
\ No newline at end of file
+Redirect Permanent
/site/accessing-filesystem-resources-extensionsfsresource.html
/documentation/bundles/accessing-filesystem-resources-extensions-fsresource.html
+Redirect Permanent /site/adapters.html
/documentation/the-sling-engine/adapters.html
\ No newline at end of file