You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2016/02/15 09:39:12 UTC

svn commit: r1730465 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java

Author: cziegeler
Date: Mon Feb 15 08:39:12 2016
New Revision: 1730465

URL: http://svn.apache.org/viewvc?rev=1730465&view=rev
Log:
SLING-5521 : Support Closeable for provider state

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java?rev=1730465&r1=1730464&r2=1730465&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java Mon Feb 15 08:39:12 2016
@@ -295,7 +295,11 @@ public abstract class ResourceProvider<T
      * If such permission is missing, a {@code LoginException} is thrown.
      * <p>
      * The resource resolver implementation will call the {@link #logout(Object)}
-     * method once the resource resolver is closed.
+     * method once the resource resolver is closed. However, if the resource
+     * provider is already unregistered when the resource resolver is closed,
+     * logout can't be called. Therefore the returned state object might
+     * implement {@link java.io.Closeable}. In this case close is called
+     * on the state object.
      *
      * @param authenticationInfo A map of further credential information which
      *            may be used by the implementation to parameterize how the