You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:11:43 UTC
[sling-org-apache-sling-scripting-sightly-models-provider] 10/15:
SLING-5074 - Provide a way to configure the priority of the Sling Models
Use Provider
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.models.provider-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-models-provider.git
commit f03f3a893486b73887012660c08d8d7e33e982ed
Author: Radu Cotescu <ra...@apache.org>
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/bundles/scripting/sightly/models-use-provider@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
"commits@sling.apache.org" <co...@sling.apache.org>.