You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2017/12/18 17:51:30 UTC

[sling-org-apache-sling-resourceresolver] branch bugfix/refresh-resourcetyperesolver updated (41bca0b -> bbd066c)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a change to branch bugfix/refresh-resourcetyperesolver
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git.


    omit 41bca0b  SLING-7313 refresh the resource type resolver as well
     new bbd066c  SLING-7313 refresh the resource type resolver as well

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (41bca0b)
            \
             N -- N -- N   refs/heads/bugfix/refresh-resourcetyperesolver (bbd066c)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../resourceresolver/impl/helper/ResourceResolverControl.java      | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].

[sling-org-apache-sling-resourceresolver] 01/01: SLING-7313 refresh the resource type resolver as well

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/refresh-resourcetyperesolver
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git

commit bbd066c35f46f079f3562d08b489c3885faa28d0
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Dec 14 18:13:47 2017 +0100

    SLING-7313 refresh the resource type resolver as well
---
 .../sling/resourceresolver/impl/helper/ResourceResolverControl.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceResolverControl.java b/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceResolverControl.java
index 018d96c..a3b3631 100644
--- a/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceResolverControl.java
+++ b/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceResolverControl.java
@@ -148,12 +148,15 @@ public class ResourceResolverControl {
     }
 
     /**
-     * Refreshes all refreshable providers.
+     * Refreshes all refreshable providers as well as the resolver used for resource types.
      */
     public void refresh(@Nonnull final ResourceResolverContext context) {
         for (final AuthenticatedResourceProvider p : context.getProviderManager().getAllUsedRefreshable()) {
             p.refresh();
         }
+        if (this.resourceTypeResourceResolver != null) {
+            this.resourceTypeResourceResolver.refresh();
+        }
     }
 
     /**

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.