public interface BeanMutatorAccessorResolver
Trilean
, so it may be TRUE, FALSE or UNKNOWN.
This will allow us to separate the kind of information each implementation works on (one for
annotations, another for visibility, etc) and to chain them. It also allows an easier addition of
new features without modifying the existing code. Have a look at StandardMutaAccessorResolver for an example of BeanMutatorAccessorResolver implementation.
To register your own implementation instead of the one by default use the genson builder.
new Genson.Builder().set(yourImplementation).create();
Modifier and Type | Interface and Description |
---|---|
static class |
BeanMutatorAccessorResolver.CompositeResolver |
static class |
BeanMutatorAccessorResolver.GensonAnnotationsResolver |
static class |
BeanMutatorAccessorResolver.PropertyBaseResolver |
static class |
BeanMutatorAccessorResolver.StandardMutaAccessorResolver
Standard implementation of BeanMutatorAccessorResolver.
|
Modifier and Type | Method and Description |
---|---|
Trilean |
isAccessor(Field field,
Class<?> fromClass) |
Trilean |
isAccessor(Method method,
Class<?> fromClass) |
Trilean |
isCreator(Constructor<?> constructor,
Class<?> fromClass) |
Trilean |
isCreator(Method method,
Class<?> fromClass) |
Trilean |
isMutator(Field field,
Class<?> fromClass) |
Trilean |
isMutator(Method method,
Class<?> fromClass) |
Trilean isCreator(Constructor<?> constructor, Class<?> fromClass)
Copyright © 2019. All rights reserved.