From f5b18b433e07d7a71fc2799da66b92d7248b5327 Mon Sep 17 00:00:00 2001 From: fangchen Date: Wed, 7 Nov 2007 19:05:21 +0000 Subject: Add Name annotation. --- src/main/java/com/amazon/carbonado/Name.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/com/amazon/carbonado/Name.java (limited to 'src/main/java/com/amazon/carbonado') 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 -- cgit v1.2.3