When a view is destroyed (stage closed, another view taken its place, etc), are there any methods that will get called on the controller? That is, is there a counterpart to:
@FXML
private void initialize()
Update: The reason why I'm doing this is that my application is receiving messages from PubNub and then those messages need to be relayed to these controllers so they can chose whether to act on them or not (whether they do depends on internal controller information, such as the size of the view).
My plan was to have these controllers register themselves in a global list and when destroyed, unregister themselves.