[jackson-annotations] 10/207: One minor improvement: mark bundle annotation with @JacksonAnnotation

Timo Aaltonen tjaalton at moszumanska.debian.org
Sat Sep 6 13:55:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

tjaalton pushed a commit to branch master
in repository jackson-annotations.

commit 8a1d7f947afc9cacecc134fdceab69f39ab41113
Author: Tatu Saloranta <tsaloranta at gmail.com>
Date:   Mon Jan 16 17:37:56 2012 -0800

    One minor improvement: mark bundle annotation with @JacksonAnnotation
---
 .../annotation/JacksonAnnotationsInside.java       | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/main/java/com/fasterxml/jackson/annotation/JacksonAnnotationsInside.java b/src/main/java/com/fasterxml/jackson/annotation/JacksonAnnotationsInside.java
new file mode 100644
index 0000000..5211432
--- /dev/null
+++ b/src/main/java/com/fasterxml/jackson/annotation/JacksonAnnotationsInside.java
@@ -0,0 +1,25 @@
+package com.fasterxml.jackson.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Meta-annotation (annotations used on other annotations)
+ * used for indicating that instead of using target annotation
+ * (annotation annotated with this annotation),
+ * Jackson should use meta-annotations it has.
+ * This can be useful in creating "combo-annotations" by having
+ * a container annotation, which needs to be annotated with this
+ * annotation as well as all annotations it 'contains'.
+ * 
+ * @since 2.0
+ */
+ at Target({ElementType.ANNOTATION_TYPE})
+ at Retention(RetentionPolicy.RUNTIME)
+ at JacksonAnnotation
+public @interface JacksonAnnotationsInside
+{
+
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-annotations.git



More information about the pkg-java-commits mailing list