A very simple Java observer implementation