Class SerializationSupportConverter.Factory
- java.lang.Object
-
- com.oracle.coherence.io.json.genson.convert.ChainedFactory
-
- com.oracle.coherence.io.json.internal.SerializationSupportConverter.Factory
-
- Enclosing class:
- SerializationSupportConverter
public static class SerializationSupportConverter.Factory extends ChainedFactory
A factory to createSerializationSupportConverterinstances.
-
-
Field Summary
Fields Modifier and Type Field Description protected Serializerf_serializerTheSerializer.
-
Constructor Summary
Constructors Constructor Description Factory(Serializer serializer)Create aSerializationSupportConverter.Factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter<?>create(Type type, Genson genson, Converter<?> nextConverter)This method will be called byChainedFactory.create(Type, Genson)with nextConverter being the converter created for current type by the next factory.
-
-
-
Field Detail
-
f_serializer
protected final Serializer f_serializer
TheSerializer.
-
-
Constructor Detail
-
Factory
public Factory(Serializer serializer)
Create aSerializationSupportConverter.Factory.- Parameters:
serializer- theSerializerto use
-
-
Method Detail
-
create
protected Converter<?> create(Type type, Genson genson, Converter<?> nextConverter)
Description copied from class:ChainedFactoryThis method will be called byChainedFactory.create(Type, Genson)with nextConverter being the converter created for current type by the next factory. This means that ChainedFactory will first create a converter with the next factory and then use it's own create method.- Specified by:
createin classChainedFactory- Parameters:
type- for which this factory must provide a convertergenson- instance that you can use when you need a converter for some other type (for example a converter of List<Integer> will need a converter for Integer type).nextConverter- created by the next factory, may be null.- Returns:
- null or a converter for this type
-
-