summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfangchen <fangchen@users.sourceforge.net>2007-11-07 19:05:21 +0000
committerfangchen <fangchen@users.sourceforge.net>2007-11-07 19:05:21 +0000
commitf5b18b433e07d7a71fc2799da66b92d7248b5327 (patch)
treecafdf8c0aee714688e51468f8723aa4847ac4d9c /src
parent7e03920a697184d926c5b6032221faa41219244b (diff)
Add Name annotation.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/Name.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/Name.java b/src/main/java/com/amazon/carbonado/Name.java
new file mode 100644
index 0000000..39b1ba8
--- /dev/null
+++ b/src/main/java/com/amazon/carbonado/Name.java
@@ -0,0 +1,19 @@
+package com.amazon.carbonado;
+
+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;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.METHOD})
+public @interface Name {
+
+ /**
+ * The prefered name of the property
+ */
+ String value();
+
+} \ No newline at end of file