monitoring an object changes
I am developing a standard Java application.
I have a class representing a quite complex data structure with some private members and corresponding setters/getters.
I wish to create a method (in another class) which is called anytime some attribute of my data structure class changes.
I read something about Observer model, do you think I should use it?
Is it possible to use change listeners?:confused:
Is it possible to avoid to put an istruction like "notifyobserver()" at the end of every setter methods in order to call the "update" method?
Thank you all.:)