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