public class BasicConvertersFactory extends Object implements Factory<Converter<?>>
BeanDescriptorProvider
that is
responsible of creating bean converters.
When you ask for a Converter it will
Constructor and Description |
---|
BasicConvertersFactory(Map<Type,Serializer<?>> serializersMap,
Map<Type,Deserializer<?>> deserializersMap,
List<Factory<?>> factories,
BeanDescriptorProvider beanDescriptorProvider) |
Modifier and Type | Method and Description |
---|---|
Converter<?> |
create(Type type,
Genson genson)
Implementations of this method must try to create an instance of type T based on the
parameter "type".
|
protected <T> T |
provide(Class<T> forClass,
Type withParameterType,
Map<Type,? extends T> fromTypeMap,
Genson genson) |
public BasicConvertersFactory(Map<Type,Serializer<?>> serializersMap, Map<Type,Deserializer<?>> deserializersMap, List<Factory<?>> factories, BeanDescriptorProvider beanDescriptorProvider)
public Converter<?> create(Type type, Genson genson)
Factory
Copyright © 2019. All rights reserved.