What is the best way to implement notification about property change?
问题 A have a bean (POJO-like) and want to make model for GUI component of it. So I need to notify about each property change in order GUI component can reflect. How to do this? Should I put notification and listener storage code just inside my bean? But this will make it "dirty". May be write some wrapper? But this will duplicate getters and setters. Are there any libraries and/or helper objects for this in Commons or somewhere else? UPDATE Also suppose I have AbstractList<E> implementation. How