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 2019/05/31 12:52:06 UTC

[sling-org-apache-sling-models-impl] branch master updated: SLING-8356 decrease ranking of ResourceTypeBasedResourcePicker to be able to place pickers after it

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git


The following commit(s) were added to refs/heads/master by this push:
     new 89ae8be  SLING-8356 decrease ranking of ResourceTypeBasedResourcePicker to be able to place pickers after it
89ae8be is described below

commit 89ae8beba7f6bd03e3af13c45124cbe62f122b3b
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri May 31 14:51:59 2019 +0200

    SLING-8356 decrease ranking of ResourceTypeBasedResourcePicker to be
    able to place pickers after it
---
 .../org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java b/src/main/java/org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java
index 35ca9dd..82b1337 100644
--- a/src/main/java/org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java
+++ b/src/main/java/org/apache/sling/models/impl/ResourceTypeBasedResourcePicker.java
@@ -31,7 +31,7 @@ import org.osgi.framework.Constants;
 
 @Component
 @Service
-@Property(name = Constants.SERVICE_RANKING, intValue = (Integer.MAX_VALUE - 1))
+@Property(name = Constants.SERVICE_RANKING, intValue = 0) // this must come before FirstImplementationPicker
 public class ResourceTypeBasedResourcePicker implements ImplementationPicker {
 
     @Override