0 Replies Latest reply on Jun 8, 2017 3:24 AM by jgabriel RSS
    jgabriel Apprentice

    Inherinance model in Java extension developement.

    When adding things with Eclipse Plugin on what should I base (extends) my entities and how is it related to Java inheritance model?

     

    • When I add ThingShape, it is based on Thing and not ThingShape.
    • When I add ThingShape, is is based on Object.

     

    No matter what it decides what type it is based on xml definition.

     

    What is up with that, what is the corret way of composing my objects in Java?

     

    Actual use case is to build 3rd party data provider as Thing, with ThingShape like interface and two implementations in 2 different ThingShapes so I can swap underlying implementation on the go.

     

    Regards JG.