-
@Retention(RUNTIME) @Target(METHOD) public @interface Encoder
An annotation for a static method of a class marking the method as the getter of aTokenEncoderfor the class. ATokenEncoderencodes a class into a serialized form. This annotation and the getter method implementation allow theAnnotationEncoderFactoryto dynamically allocate an encoder for instances of this class. Encoders are allocated on an as needed basis.- See Also:
TokenEncoder,AnnotationEncoderFactory