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:42 UTC

[sling-org-apache-sling-models-api] branch issue/SLING-11073 created (now 6d63326)

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

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


      at 6d63326  SLING-11073: add OriginalResource ViaProviderType

This branch includes the following new commits:

     new 6d63326  SLING-11073: add OriginalResource ViaProviderType

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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

Posted by di...@apache.org.
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