| 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.reflect |
This package contains the core api providing databinding support for complex objects.
|
| Modifier and Type | Method and Description |
|---|---|
protected Factory<Converter<?>> |
Genson.Builder.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<?>> |
Genson.Builder.getFactories() |
| Modifier and Type | Method and Description |
|---|---|
protected Genson |
Genson.Builder.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.
|
Genson.Builder |
Genson.Builder.withConverterFactory(Factory<? extends Converter<?>> factory)
Registers converter factories.
|
Genson.Builder |
Genson.Builder.withDeserializerFactory(Factory<? extends Deserializer<?>> factory)
Registers deserializer factories.
|
Genson.Builder |
Genson.Builder.withSerializerFactory(Factory<? extends Serializer<?>> factory)
Registers serializer factories.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Genson.Builder.addDefaultConverterFactories(List<Factory<? extends Converter<?>>> factories)
Override this method if you want to change the default converter factories.
|
protected void |
Genson.Builder.addDefaultDeserializerFactories(List<Factory<? extends Deserializer<?>>> deserializerFactories) |
protected void |
Genson.Builder.addDefaultSerializerFactories(List<Factory<? extends Serializer<?>>> serializerFactories) |
| Constructor and Description |
|---|
Genson(Factory<Converter<?>> converterFactory,
BeanDescriptorProvider beanDescProvider,
Converter<Object> nullConverter,
boolean skipNull,
boolean htmlSafe,
Map<String,Class<?>> classAliases,
boolean withClassMetadata,
boolean strictDoubleParse,
boolean indent,
boolean withMetadata)
Instead of using this constructor you should use
Genson.Builder. |
| Modifier and Type | Method and Description |
|---|---|
<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 |
AbstractBeanDescriptorProvider.ContextualFactoryDecorator |
| Constructor and Description |
|---|
AbstractBeanDescriptorProvider.ContextualFactoryDecorator(Factory<Converter<?>> delegatedConverter) |
Copyright © 2014. All Rights Reserved.