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

rombert pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-models-provider.git

commit 5dbba22699fc2d73c6015439fc8752621815ae5a
Author: Radu Cotescu <[email protected]>
AuthorDate: Tue Sep 29 10:02:00 2015 +0000

    SLING-5074 - Provide a way to configure the priority of the Sling Models 
Use Provider
    
    * exposed the service.ranking property through the component's metatype 
description
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1705827 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../sightly/models/impl/SlingModelsUseProvider.java         | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/scripting/sightly/models/impl/SlingModelsUseProvider.java
 
b/src/main/java/org/apache/sling/scripting/sightly/models/impl/SlingModelsUseProvider.java
index cf8fa3d..fea828f 100644
--- 
a/src/main/java/org/apache/sling/scripting/sightly/models/impl/SlingModelsUseProvider.java
+++ 
b/src/main/java/org/apache/sling/scripting/sightly/models/impl/SlingModelsUseProvider.java
@@ -58,21 +58,26 @@ import org.slf4j.LoggerFactory;
  * In case any of those preconditions are not fulfilled the other registered 
{@link UseProvider}s will be queried.
  * </p>
  */
-@Component
+@Component(
+    metatype = true,
+    label = "Apache Sling Scripting Sightly Sling Models Use Provider",
+    description = "The Sling Models Use Provider is responsible for 
instantiating Sling Models to be used with Sightly's Use-API."
+)
 @Service
 @Properties({
     @Property(
         name = Constants.SERVICE_RANKING,
         label = "Service Ranking",
         description =
-            "The Service Ranking value acts as the priority with which this 
Use Provider is queried to return an Use-object. A" +
-                "higher value represents a higher priority.",
+            "The Service Ranking value acts as the priority with which this 
Use Provider is queried to return an Use-object. A higher " +
+                "value represents a higher priority.",
         /**
          * Must have a higher priority than {@link 
org.apache.sling.scripting.sightly.impl.engine.extension.use.JavaUseProvider} 
but lower
          * than {@link 
org.apache.sling.scripting.sightly.impl.engine.extension.use.RenderUnitProvider}
 to kick in before the
          * JavaUseProvider but after the RenderUnitProvider.
          */
-        intValue = 95
+        intValue = 95,
+        propertyPrivate = false
     )
 })
 public class SlingModelsUseProvider implements UseProvider {

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to