public abstract class FilterProvider extends Object
PropertyFilter
that match given ids. A provider is configured to be used during serialization,
to find filter to used based on id specified by JsonFilter
annotation on bean class.Constructor and Description |
---|
FilterProvider() |
Modifier and Type | Method and Description |
---|---|
abstract BeanPropertyFilter |
findFilter(Object filterId)
Deprecated.
Since 2.3 deprecated because
BeanPropertyFilter is deprecated; |
PropertyFilter |
findPropertyFilter(Object filterId,
Object valueToFilter)
Lookup method used to find
PropertyFilter that has specified id. |
@Deprecated public abstract BeanPropertyFilter findFilter(Object filterId)
BeanPropertyFilter
is deprecated;BeanPropertyFilter
that has specified id.
Note that id is typically a String
, but is not necessarily
limited to that; that is, while standard components use String, custom
implementation can choose other kinds of keys.public PropertyFilter findPropertyFilter(Object filterId, Object valueToFilter)
PropertyFilter
that has specified id.
Note that id is typically a String
, but is not necessarily
limited to that; that is, while standard components use String, custom
implementation can choose other kinds of keys.
This method is the replacement for findFilter(java.lang.Object)
starting with 2.3.
Note that the default implementation is designed to support short-term
backwards compatibility, and will call the deprecated findFilter
method, then wrap filter if one found as PropertyFilter
.
It should be overridden by up-to-date implementations
filterId
- Id of the filter to fetchvalueToFilter
- Object being filtered (usually POJO, but may be a Map
,
or in future a container), if available; not available when generating
schemas.Copyright © 2008–2016 FasterXML. All rights reserved.