Interface Jackson2Support

  • All Superinterfaces:
    JsonSerializable

    public interface Jackson2Support
    extends JsonSerializable
    Extension interface that makes IBeans serializable and deserializable with Jackson2. If an IBean interface extends Jackson2Support you are able to convert any IBean instance from and to JSON. For this to work you need another two prerequisites:
    See Also:
    ObjectMapper
    • Method Detail

      • readFromJsonParser

        void readFromJsonParser​(JsonParser p,
                                DeserializationContext ctxt)
        Reads the field values from a JsonParser and sets the fields of this IBean to the retrieved values.

        You normally do not use this method directly. It is mainly called from Jackson2ModuleForIBeans during JSON deserialization.

        Parameters:
        p - the JsonParser reading some JSON representation of this IBean
        ctxt - the Jackson2 deserialization context