This callback is called to notify the listener that the state of a DOFDomain has changed.
This callback will be called immediately when the listener is added with the current state and then will be called whenever the state changes.