Where to put logic in bindings [message #1403109] |
Mon, 21 July 2014 12:16 |
Kai Kreuzer Messages: 673 Registered: December 2011 |
Senior Member |
|
|
Posting a discussion taken from a mail thread with Karel Goderis:
>> Karel: Also, If you have a ThingHandler instance per Thing, where would you put all the logic, caches etc that you need to manipulate Things objects ? in the binding, in a Bridge,...?
> Me: Probably best to have this in the Bridge as a Bridge gives you access to a subsystem (for which you might want to do caching etc.). From a ThingHandler you can always get back to the ThingHandler of the Bridge to call methods on it.
Karel: Ok - So, what's then left to do in the Binding itself? That being said, given that bindings are Extensions, would that open the door for new functionalities such as direct inter-binding communication? or can we have multi-Thing bindings, e.g. a Binding that deals with different types of Things? I just refer back to my favorite use case whereby I would like to have my IRTrans IR receivers/transmitters act in conjunction with my HDMI Video matrix
|
|
|
|
Powered by
FUDForum. Page generated in 0.03827 seconds