@Retention(value=RUNTIME) @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) public @interface RiakContentType
The type must be a String.
In most cases this is not needed as the Converter
will supply the appropriate content-type during serialization.
class MyPojo
{
@RiakContentType
String contentType;
}
class MyPojo
{
private String contentType;
@RiakContentType
public void setContentType(String contentType)
{
this.contentType = contentType;
}
@RiakContentType
public String getContentType()
{
return contentType;
}
}
Copyright © 2015. All rights reserved.