Class DefaultIntrospector

  • All Implemented Interfaces:
    Introspector

    public class DefaultIntrospector
    extends Object
    implements Introspector
    Override some behaviour of the JSON library JSON object to allow mapped fields to be converted to JSON objects before adding to map. (The default is to just store the object's toString representation in the map)
    • Method Detail

      • getProperties

        public Map<String,​Object> getProperties​(Object bean)
        Description copied from interface: Introspector
        Return the properties of the bean as property names mapped to property value Objects.
        Properties are defined by getter methods of the form getX or isX, with no parameters.
        Specified by:
        getProperties in interface Introspector
        Returns:
        map of property name Strings to property values.