Class FilterProvider

  • Direct Known Subclasses:
    SimpleFilterProvider

    public abstract class FilterProvider
    extends java.lang.Object
    Interface for objects that providers instances of BeanPropertyFilter 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.
    Since:
    1.7
    • Constructor Detail

      • FilterProvider

        public FilterProvider()
    • Method Detail

      • findFilter

        public abstract BeanPropertyFilter findFilter​(java.lang.Object filterId)
        Lookup method used to find 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.
        Returns:
        Filter registered with specified id, if one defined; null if none found.