7 Replies Latest reply on May 17, 2016 10:00 AM by asinclair-2 RSS
    imor Newbie

    Java Based ThingsShape

    Hi

    I am trying to create a sophisticated Java based ThingShape, which contains several services.

    In one of those services, i would like to read the value of one of the properties,

    which were defined in the ThingShape, and were received their value from the implemented Thing.

     

    The only workaround i was able to find, is to use ThreadLocalContext.getMeContext() inside the service,

    which return the Thing which implements that ThingsShape, and which fire the ThingShape's service,

    and then iterate over it's properties.

     

    Can you please confirm that this is the Bast practice for getting the Thing which call the ThingShape's service?

     

    Thank you

     

    Ido