diff options
author | fangchen <fangchen@users.sourceforge.net> | 2007-11-07 19:05:21 +0000 |
---|---|---|
committer | fangchen <fangchen@users.sourceforge.net> | 2007-11-07 19:05:21 +0000 |
commit | f5b18b433e07d7a71fc2799da66b92d7248b5327 (patch) | |
tree | cafdf8c0aee714688e51468f8723aa4847ac4d9c /src/main/java | |
parent | 7e03920a697184d926c5b6032221faa41219244b (diff) |
Add Name annotation.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/amazon/carbonado/Name.java | 19 |
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 |