SLING-9320 - Allow bundled render units to access objects from the same bundle through the Use API
* deprecated the SlingModelsUseProvider
diff --git a/README.md b/README.md
index 388836e..858089f 100644
--- a/README.md
+++ b/README.md
@@ -9,3 +9,5 @@
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 @@
* <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 @@
Constants.SERVICE_RANKING + ":Integer=95"
}
)
+@Deprecated
public class SlingModelsUseProvider implements UseProvider {
@interface Configuration {