public static class BeanMutatorAccessorResolver.StandardMutaAccessorResolver extends Object implements BeanMutatorAccessorResolver
BeanMutatorAccessorResolver.CompositeResolver, BeanMutatorAccessorResolver.GensonAnnotationsResolver, BeanMutatorAccessorResolver.PropertyBaseResolver, BeanMutatorAccessorResolver.StandardMutaAccessorResolver
Constructor and Description |
---|
StandardMutaAccessorResolver()
Creates a new instance of StandardMutaAccessorResolver with
VisibilityFilter.PACKAGE_PUBLIC visibility for fields,
VisibilityFilter.PACKAGE_PUBLIC visibility for methods and creators. |
StandardMutaAccessorResolver(VisibilityFilter filedVisibilityFilter,
VisibilityFilter methodVisibilityFilter,
VisibilityFilter creatorVisibilityFilter,
boolean settersMustBeVoid)
Use this constructor if you want to customize the visibility filtering.
|
Modifier and Type | Method and Description |
---|---|
Trilean |
isAccessor(Field field,
Class<?> fromClass)
Will resolve all public/package and non transient/static fields as accesssors.
|
Trilean |
isAccessor(Method method,
Class<?> fromClass)
Resolves all public methods starting with get/is (boolean) and parameter less as
accessors.
|
Trilean |
isCreator(Constructor<?> constructor,
Class<?> fromClass) |
Trilean |
isCreator(Method method,
Class<?> fromClass) |
Trilean |
isMutator(Field field,
Class<?> fromClass) |
Trilean |
isMutator(Method method,
Class<?> fromClass) |
public StandardMutaAccessorResolver()
VisibilityFilter.PACKAGE_PUBLIC
visibility for fields,
VisibilityFilter.PACKAGE_PUBLIC
visibility for methods and creators.public StandardMutaAccessorResolver(VisibilityFilter filedVisibilityFilter, VisibilityFilter methodVisibilityFilter, VisibilityFilter creatorVisibilityFilter, boolean settersMustBeVoid)
filedVisibilityFilter
- methodVisibilityFilter
- creatorVisibilityFilter
- public Trilean isAccessor(Field field, Class<?> fromClass)
isAccessor
in interface BeanMutatorAccessorResolver
public Trilean isAccessor(Method method, Class<?> fromClass)
isAccessor
in interface BeanMutatorAccessorResolver
public Trilean isCreator(Constructor<?> constructor, Class<?> fromClass)
isCreator
in interface BeanMutatorAccessorResolver
public Trilean isCreator(Method method, Class<?> fromClass)
isCreator
in interface BeanMutatorAccessorResolver
public Trilean isMutator(Field field, Class<?> fromClass)
isMutator
in interface BeanMutatorAccessorResolver
public Trilean isMutator(Method method, Class<?> fromClass)
isMutator
in interface BeanMutatorAccessorResolver
Copyright © 2019. All rights reserved.