You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:12:45 UTC

[sling-adapter-annotations] 04/07: SLING-2354 - adding Adaptables annotation

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

rombert pushed a commit to annotated tag adapter-annotations-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-adapter-annotations.git

commit 00ed342168d6d641133ded43054aea08cc53ed49
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Wed Jan 11 17:24:17 2012 +0000

    SLING-2354 - adding Adaptables annotation
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/maven/adapter-annotations@1230159 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/adapter/annotations/Adaptable.java       |  2 +-
 .../sling/adapter/annotations/Adaptables.java      | 40 ++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/adapter/annotations/Adaptable.java b/src/main/java/org/apache/sling/adapter/annotations/Adaptable.java
index a30ad21..f3ca5ea 100644
--- a/src/main/java/org/apache/sling/adapter/annotations/Adaptable.java
+++ b/src/main/java/org/apache/sling/adapter/annotations/Adaptable.java
@@ -25,7 +25,7 @@ import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
 /**
- * The <code>AdaptableInfo</code> annotation defines metadata about an implementation
+ * The <code>Adaptable</code> annotation defines metadata about an implementation
  * of <code>org.apache.sling.api.adapter.Adaptable</code>.
  */
 @Target(ElementType.TYPE)
diff --git a/src/main/java/org/apache/sling/adapter/annotations/Adaptables.java b/src/main/java/org/apache/sling/adapter/annotations/Adaptables.java
new file mode 100644
index 0000000..6c0bb5b
--- /dev/null
+++ b/src/main/java/org/apache/sling/adapter/annotations/Adaptables.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to You under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.sling.adapter.annotations;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * The <code>Adaptables</code> annotation allows multiple
+ * <code>org.apache.sling.api.adapter.annotations.Adaptable</code> annotations
+ * to be added to a single class.
+ */
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.CLASS)
+@Documented
+public @interface Adaptables {
+
+    /**
+     * The adaptable annotations.
+     */
+    Adaptable[] value();
+
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.