public static class BeanDescriptorProvider.CompositeBeanDescriptorProvider extends Object implements BeanDescriptorProvider
BeanDescriptorProvider.CompositeBeanDescriptorProvider
Constructor and Description |
---|
CompositeBeanDescriptorProvider(List<BeanDescriptorProvider> providers) |
Modifier and Type | Method and Description |
---|---|
<T> BeanDescriptor<T> |
provide(Class<T> ofClass,
Genson genson)
Provides a BeanDescriptor for "type" using current Genson instance.
|
<T> BeanDescriptor<T> |
provide(Class<T> ofClass,
Type type,
Genson genson)
Provides a BeanDescriptor that can serialize/deserialize "ofClass" type, based on "type"
argument.
|
public CompositeBeanDescriptorProvider(List<BeanDescriptorProvider> providers)
public <T> BeanDescriptor<T> provide(Class<T> ofClass, Genson genson)
BeanDescriptorProvider
provide
in interface BeanDescriptorProvider
ofClass
- for which we need a BeanDescriptor.genson
- current instance.public <T> BeanDescriptor<T> provide(Class<T> ofClass, Type type, Genson genson)
BeanDescriptorProvider
provide
in interface BeanDescriptorProvider
ofClass
- is the Class for which we need a BeanDescriptor that will be able to
serialize/deserialize objects of that type;type
- to use to build this descriptor (use its declared methods, fields, etc).genson
- is the current Genson instance.Copyright © 2019. All rights reserved.