public abstract class GensonBundle extends Object
Genson genson = new GensonBuilder().with(new SuperCoolExtension()).create();Extension configuration is mixed with user custom configuration (no way to distinguish them), however user custom config. has preference over bundle configuration. This means that you can override bundle configuration with custom one. Important note, bundles must be registered after any other configuration. This part of the API is still in beta, it could change in the future in order to make it more powerful.
Constructor and Description |
---|
GensonBundle() |
Modifier and Type | Method and Description |
---|---|
abstract void |
configure(GensonBuilder builder)
This method does not provide any guarantee to when it is called: before user config, during,
or after.
|
BeanDescriptorProvider |
createBeanDescriptorProvider(AbstractBeanDescriptorProvider.ContextualConverterFactory contextualConverterFactory,
BeanPropertyFactory propertyFactory,
BeanMutatorAccessorResolver propertyResolver,
PropertyNameResolver nameResolver,
GensonBuilder builder) |
public abstract void configure(GensonBuilder builder)
public BeanDescriptorProvider createBeanDescriptorProvider(AbstractBeanDescriptorProvider.ContextualConverterFactory contextualConverterFactory, BeanPropertyFactory propertyFactory, BeanMutatorAccessorResolver propertyResolver, PropertyNameResolver nameResolver, GensonBuilder builder)
Copyright © 2019. All rights reserved.