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/02/07 19:48:55 UTC

[sling-org-apache-sling-models-api] branch master updated: SLING-11073: add OriginalResource ViaProviderType (#3)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 48113cc  SLING-11073: add OriginalResource ViaProviderType (#3)
48113cc is described below

commit 48113cc2f4ca31878382608067fb7e2116686403
Author: Dirk Rudolph <di...@gmail.com>
AuthorDate: Mon Feb 7 20:48:50 2022 +0100

    SLING-11073: add OriginalResource ViaProviderType (#3)
---
 .../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