Package | Description |
---|---|
com.owlike.genson |
This package contains Genson base classes, to start
with have a look at
Genson . |
com.owlike.genson.convert |
This package provides some default
Converter implementations and
the chained factory and converter decorator mechanisms. |
com.owlike.genson.ext.jodatime | |
com.owlike.genson.reflect |
This package contains the core api providing databinding support for complex objects.
|
Modifier and Type | Method and Description |
---|---|
protected Factory<Converter<?>> |
GensonBuilder.createConverterFactory()
You should override this method if you want to add custom
ChainedFactory or if you need to chain
them differently. |
Modifier and Type | Method and Description |
---|---|
List<Factory<?>> |
GensonBuilder.getFactories() |
Modifier and Type | Method and Description |
---|---|
protected Genson |
GensonBuilder.create(Factory<Converter<?>> converterFactory,
Map<String,Class<?>> classAliases)
In theory this allows you to extend Genson class and to instantiate it, but actually you
can not do it as Genson class is final.
|
GensonBuilder |
GensonBuilder.withConverterFactory(Factory<? extends Converter<?>> factory)
Registers converter factories.
|
GensonBuilder |
GensonBuilder.withDeserializerFactory(Factory<? extends Deserializer<?>> factory)
Registers deserializer factories.
|
GensonBuilder |
GensonBuilder.withSerializerFactory(Factory<? extends Serializer<?>> factory)
Registers serializer factories.
|
Modifier and Type | Method and Description |
---|---|
protected void |
GensonBuilder.addDefaultConverterFactories(List<Factory<? extends Converter<?>>> factories)
Override this method if you want to change the default converter factories.
|
protected void |
GensonBuilder.addDefaultDeserializerFactories(List<Factory<? extends Deserializer<?>>> deserializerFactories) |
protected void |
GensonBuilder.addDefaultSerializerFactories(List<Factory<? extends Serializer<?>>> serializerFactories) |
Constructor and Description |
---|
Genson(Factory<Converter<?>> converterFactory,
BeanDescriptorProvider beanDescProvider,
boolean skipNull,
boolean htmlSafe,
Map<String,Class<?>> classAliases,
boolean withClassMetadata,
boolean strictDoubleParse,
boolean indent,
boolean withMetadata,
boolean failOnMissingProperty,
Map<Class<?>,Object> defaultValues,
RuntimePropertyFilter runtimePropertyFilter)
Instead of using this constructor you should use
GensonBuilder . |
Modifier and Type | Class and Description |
---|---|
class |
BasicConvertersFactory
This is the base factory that will create converters based on the default ones and on custom
Serializer, Deserializer and Converter.
|
static class |
BeanViewConverter.BeanViewConverterFactory |
class |
ChainedFactory
A chained factory of Converters that gives the ability to implementations to decorate the
converter created by the next factory.
|
class |
CircularClassReferenceConverterFactory
ChainedFactory that handles circular class references.
|
static class |
ClassMetadataConverter.ClassMetadataConverterFactory |
static class |
DefaultConverters.ArrayConverterFactory |
static class |
DefaultConverters.CalendarConverterFactory |
static class |
DefaultConverters.CollectionConverterFactory |
static class |
DefaultConverters.EnumConverterFactory |
static class |
DefaultConverters.MapConverterFactory |
static class |
DefaultConverters.PrimitiveConverterFactory |
static class |
DefaultConverters.SingleValueAsListFactory |
static class |
DefaultConverters.UntypedConverterFactory |
class |
NullConverterFactory
The default implementation handles null values by returning the predefined default value if any or null during
deserialization and by calling writer.writeNull() during serialization.
|
static class |
RuntimeTypeConverter.RuntimeTypeConverterFactory |
Modifier and Type | Method and Description |
---|---|
<T extends Factory<? extends Converter<?>>> |
ChainedFactory.append(T next) |
<T extends Factory<? extends Converter<?>>> |
ChainedFactory.withNext(T next)
Chains this factory with next and returns next (the tail) so you can do things like
chain1.withNext(new chain2).withNext(new chain3); the resulting chain is
chain1=>chain2=>chain3.
|
Modifier and Type | Method and Description |
---|---|
Factory<? extends Converter<?>> |
ChainedFactory.next() |
Constructor and Description |
---|
ChainedFactory(Factory<Converter<?>> next) |
Constructor and Description |
---|
BasicConvertersFactory(Map<Type,Serializer<?>> serializersMap,
Map<Type,Deserializer<?>> deserializersMap,
List<Factory<?>> factories,
BeanDescriptorProvider beanDescriptorProvider) |
Modifier and Type | Class and Description |
---|---|
static class |
IntervalConverter.ConverterFactory |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBeanDescriptorProvider.ContextualFactoryDecorator |
Constructor and Description |
---|
ContextualFactoryDecorator(Factory<Converter<?>> delegatedFactory) |
Copyright © 2019. All rights reserved.