I don't know if there is a framework for your requirements, But I think observer design pattern could help you. The model you are talking about is an implementation of observer pattern.