You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/04/17 18:54:26 UTC
[sling-org-apache-sling-scripting-sightly-models-provider] branch
master updated: SLING-9320 - Allow bundled render units to access objects
from the same bundle through the Use API
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-models-provider.git
The following commit(s) were added to refs/heads/master by this push:
new 5a2091a SLING-9320 - Allow bundled render units to access objects from the same bundle through the Use API
5a2091a is described below
commit 5a2091a04db11c0d7c88353f59a25575d2f4b38a
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Fri Apr 17 20:53:49 2020 +0200
SLING-9320 - Allow bundled render units to access objects from the same bundle through the Use API
* deprecated the SlingModelsUseProvider
---
README.md | 2 ++
.../sling/scripting/sightly/models/impl/SlingModelsUseProvider.java | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/README.md b/README.md
index 388836e..858089f 100644
--- a/README.md
+++ b/README.md
@@ -9,3 +9,5 @@ This module is part of the [Apache Sling](https://sling.apache.org) project.
The Apache Sling Scripting HTL Sling Models Use Provider adds support for accessing
[Sling Models](https://sling.apache.org/documentation/bundles/models.html)
from HTL's Use-API leveraging the `ModelFactory`.
+
+Version 1.4.0-1.4.0 of the `org.apache.sling.scripting.sightly` module makes this module obsolete, since the functionality of the `SlingModelsUseProvider` has been fully integrated into the HTL Script Engine.
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 1a4104e..248df4a 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
@@ -56,6 +56,10 @@ import org.slf4j.LoggerFactory;
* <p>
* In case any of those preconditions are not fulfilled the other registered {@link UseProvider}s will be queried.
* </p>
+ *
+ * @deprecated This service's functionality has been fully integrated into the
+ * {@link org.apache.sling.scripting.sightly.impl.engine.extension.use.JavaUseProvider} starting from version 1.4.0-1.4.0 of the {@code
+ * org.apache.sling.scripting.sightly} bundle.
*/
@Component(
service = UseProvider.class,
@@ -69,6 +73,7 @@ import org.slf4j.LoggerFactory;
Constants.SERVICE_RANKING + ":Integer=95"
}
)
+@Deprecated
public class SlingModelsUseProvider implements UseProvider {
@interface Configuration {