public interface Extension
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreate(Class clazz)
Can this extension create object instance for given interface type
|
Type |
chooseImplementation(Type type)
Choose the implementation class for interface types
|
Object |
create(Class clazz)
Create object instance for given interface type
|
Decoder |
createDecoder(String cacheKey,
Type type)
Customize type decoding
|
Encoder |
createEncoder(String cacheKey,
Type type)
Customize type encoding
|
void |
updateClassDescriptor(ClassDescriptor desc)
Update how binding is done for the class
|
Type chooseImplementation(Type type)
type - the type to decode to, could be class or parameterized typeboolean canCreate(Class clazz)
clazz - the interfaceObject create(Class clazz)
clazz - the interfaceDecoder createDecoder(String cacheKey, Type type)
cacheKey - name of the decodertype - change how to decode the typeEncoder createEncoder(String cacheKey, Type type)
cacheKey - name of the encodertype - change how to encode the typevoid updateClassDescriptor(ClassDescriptor desc)
desc - binding informationCopyright © 2019. All rights reserved.