You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by di...@apache.org on 2022/01/19 10:20:43 UTC

[sling-org-apache-sling-models-api] 01/01: SLING-11073: add OriginalResource ViaProviderType

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

diru pushed a commit to branch issue/SLING-11073
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-api.git

commit 6d63326cb2199d3d2950fa348363cdd3f9237924
Author: Dirk Rudolph <dr...@adobe.com>
AuthorDate: Wed Jan 19 11:20:31 2022 +0100

    SLING-11073: add OriginalResource ViaProviderType
---
 .../via/{package-info.java => OriginalResource.java}          | 11 +++++++++--
 .../org/apache/sling/models/annotations/via/package-info.java |  2 +-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/models/annotations/via/package-info.java b/src/main/java/org/apache/sling/models/annotations/via/OriginalResource.java
similarity index 76%
copy from src/main/java/org/apache/sling/models/annotations/via/package-info.java
copy to src/main/java/org/apache/sling/models/annotations/via/OriginalResource.java
index 8b7ea8a..2247605 100644
--- a/src/main/java/org/apache/sling/models/annotations/via/package-info.java
+++ b/src/main/java/org/apache/sling/models/annotations/via/OriginalResource.java
@@ -14,7 +14,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-@Version("1.0.0")
 package org.apache.sling.models.annotations.via;
 
-import org.osgi.annotation.versioning.Version;
\ No newline at end of file
+import org.apache.sling.models.annotations.ViaProviderType;
+import org.osgi.annotation.versioning.ProviderType;
+
+/**
+ * Marker class for using the OriginalResource @Via provider.
+ */
+@ProviderType
+public class OriginalResource implements ViaProviderType {
+}
diff --git a/src/main/java/org/apache/sling/models/annotations/via/package-info.java b/src/main/java/org/apache/sling/models/annotations/via/package-info.java
index 8b7ea8a..11bb4de 100644
--- a/src/main/java/org/apache/sling/models/annotations/via/package-info.java
+++ b/src/main/java/org/apache/sling/models/annotations/via/package-info.java
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-@Version("1.0.0")
+@Version("1.1.0")
 package org.apache.sling.models.annotations.via;
 
 import org.osgi.annotation.versioning.Version;
\ No newline at end of file