Interface NotifiableBinding
- All Superinterfaces:
Binding
Internal contract every generated
Binding implementation provides so
Binders#notifyChanged(Object) can route a model mutation to the
bindings that observe it. Application code never references this
directly -- the Binding interface remains the public handle returned
from Binders.bind.-
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue when this binding's source object ISmodel(identity, not equality).model.getClass().getName()-- the registry keyBinders.notifyChangeduses to find the bindings that care about this model class.Methods inherited from interface Binding
commit, disconnect, getValidator, refresh
-
Method Details
-
modelTypeName
String modelTypeName()model.getClass().getName()-- the registry keyBinders.notifyChangeduses to find the bindings that care about this model class. Stored at bind time so it survives obfuscation: the value is whatevergetName()returned at bind, which is guaranteed to matchnotifyChanged's lookup within a single execution. -
matches
True when this binding's source object ISmodel(identity, not equality). The notification fan-out uses identity so multiple independent instances of the same@Bindableclass don't refresh each other.
-