Decision Management (ODM,ADS)

Decision Management (ODM, ADS)

Connect with experts and peers to elevate technical expertise, solve problems and share insights

 View Only

Using a custom jackson-databind JsonDeserializer in HTDS

  • 1.  Using a custom jackson-databind JsonDeserializer in HTDS

    Posted yesterday

    We're dealing with the migration of an old ODM service for a customer, where the XOM is using mainly raw tpye (java.util.Vector) instead of java.util.Vector<T>.

    So we need to instruct Jackson with annotations like: 

    @JsonDeserialize(using = MyDeserializer.class)
    I guess that adding the class MyDeserializer to the XOM is not enough as the class should be registered in the Jackson ObjectMapper of the HTDS:
    mapper.registerModule(...)

    ¿Is there any other solution for this?
    ¿Did you ever faced similar requirements?

     



    ------------------------------
    Eduardo Izquierdo Lázaro
    Automation Architect
    DECIDE
    Madrid
    609893677
    ------------------------------