public class AnnotationEncoderFactory extends AbstractObjectEncoderFactory
Encoder
and Decoder
.
Note that the annotated methods must be static as the class cannot be instantiated to obtain the encoder/decoder instances.
Constructor and Description |
---|
AnnotationEncoderFactory() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isFactoryForType(Class<?> type)
Determine if this factory supports the given class type.
|
protected TokenDecoder |
newDecoder(Class<?> type)
Create a new decoder instance for the given type.
|
protected TokenEncoder |
newEncoder(Class<?> type)
Create a new encoder instance for the given type.
|
isFactoryForType, newDecoder, newEncoder
protected boolean isFactoryForType(Class<?> type)
AbstractObjectEncoderFactory
isFactoryForType
in class AbstractObjectEncoderFactory
type
- the type to checkprotected TokenDecoder newDecoder(Class<?> type)
AbstractObjectEncoderFactory
newDecoder
in class AbstractObjectEncoderFactory
type
- the class which is to be decodedprotected TokenEncoder newEncoder(Class<?> type)
AbstractObjectEncoderFactory
newEncoder
in class AbstractObjectEncoderFactory
type
- the class which is to be decodedCopyright © 2021 Actian Corporation. All rights reserved.