java.lang.Object
tools.jackson.databind.ser.FilterProvider
- All Implemented Interfaces:
Snapshottable<FilterProvider>
- Direct Known Subclasses:
SimpleFilterProvider
Interface for objects that provides instances of
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PropertyFilterfindPropertyFilter(SerializationContext ctxt, Object filterId, Object valueToFilter) Lookup method used to findPropertyFilterthat has specified id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.jackson.core.util.Snapshottable
snapshot
-
Constructor Details
-
FilterProvider
public FilterProvider()
-
-
Method Details
-
findPropertyFilter
public abstract PropertyFilter findPropertyFilter(SerializationContext ctxt, Object filterId, Object valueToFilter) Lookup method used to findPropertyFilterthat has specified id. Note that id is typically aString, but is not necessarily limited to that; that is, while standard components use String, custom implementation can choose other kinds of keys.- Parameters:
filterId- Id of the filter to fetchvalueToFilter- Object being filtered (usually POJO, but may be aMap, or in future a container), if available; not available when generating schemas.- Returns:
- Filter to use, if any.
-