How is the bind operator implemented in JavaFX? What happens behind the scenes? Does every variable in JavaFX implement some kind of obser开发者_如何转开发ver API so that listeners can attach to it or is it a trick in the VM?
It's definitely not a trick in the VM. For some parts of the bind functionality the JavaFX complier simply generates code and some of the code are calls to a runtime component called Location. Location maintains dependencies and variable invalidation and binds. You can browse the sources on kenai if you like. Looking through de-compiled javafx classes might help your understanding too.
精彩评论