public abstract class AbstractObjectEncoderFactory extends Object implements EncoderFactory
EncoderFactory
for
customizing the encoding/decoding of ObjectTokenType
.
To support a new object type, extend this class
rather than implementing EncoderFactory
directly.Constructor and Description |
---|
AbstractObjectEncoderFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
isFactoryForType(Class<?> type)
Determine if this factory supports the given class type.
|
boolean |
isFactoryForType(TokenType type)
Determine if this factory supports the given class type.
|
protected abstract TokenDecoder |
newDecoder(Class<?> type)
Create a new decoder instance for the given type.
|
TokenDecoder |
newDecoder(TokenType type)
Create a new
decoder instance for the given type. |
protected abstract TokenEncoder |
newEncoder(Class<?> type)
Create a new encoder instance for the given type.
|
TokenEncoder |
newEncoder(TokenType type)
Create a new
encoder instance for the given type. |
public final boolean isFactoryForType(TokenType type)
EncoderFactory
isFactoryForType
in interface EncoderFactory
type
- the type to checkpublic final TokenDecoder newDecoder(TokenType type)
EncoderFactory
decoder
instance for the given type. The type
is specified to allow a single factory to serve multiple types.newDecoder
in interface EncoderFactory
type
- the type which is to be decodedpublic TokenEncoder newEncoder(TokenType type)
EncoderFactory
encoder
instance for the given type. The type
is specified to allow a single factory to serve multiple types.newEncoder
in interface EncoderFactory
type
- the type which is to be encodedprotected abstract boolean isFactoryForType(Class<?> type)
type
- the type to checkprotected abstract TokenDecoder newDecoder(Class<?> type)
type
- the class which is to be decodedprotected abstract TokenEncoder newEncoder(Class<?> type)
type
- the class which is to be decodedCopyright © 2024 Actian Corporation. All rights reserved.