@Retention(value=RUNTIME) @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) public @interface RiakBucketName
The type must be a String
.
class MyPojo { @RiakBucketName String bucketName; } class MyPojo { private String bucketName; @RiakBucketName public void setBucketName(String bucketName) { this.bucketName = bucketName; } @RiakBucketName public String getBucketName() { return bucketName; } }
Copyright © 2014. All rights reserved.