I would like a Map implementation in which i could add listeners for put() events.
Is there anything like that in the standard or any 3rd party libraries?
I'm not aware of any standard or 3rd party, but it is easy, just create a class which wraps another Map and implements the Map interface:
public class MapListener implements Map {
private final Map delegatee;
public MapListener(Map delegatee) {
this.delegatee = delegatee;
}
// implement all Map methods, with callbacks you need.
}