public class PropertyMapWeakListenerManager
extends java.lang.Object
PropertyMap
listeners which are garbage collected and removed from the PropertyMap
object on which it listens when there are no strong or soft references to the listeners.public static void addWeakListener(PropertyMap map, PropertyMapListener listener)
PropertyMap
.map
- the PropertyMap
listener
- the listenerpublic static void addWeakPropertyChangeListener(PropertyMap map, Property property, PropertyChangeListener listener)
PropertyMap
.map
- the PropertyMap
property
- the property to listen to changes onlistener
- the listenerpublic static void addWeakTreeListener(PropertyMap map, PropertyMapTreeListener listener)
PropertyMap
.map
- the PropertyMap
listener
- the listenerpublic static void removeWeakListener(PropertyMap map, PropertyMapListener listener)
addWeakListener(PropertyMap, PropertyMapListener)
.map
- the map on which the listener was addedlistener
- the listenerpublic static void removeWeakPropertyChangeListener(PropertyMap map, Property property, PropertyChangeListener listener)
addWeakPropertyChangeListener(PropertyMap, net.infonode.properties.base.Property, net.infonode.properties.util.PropertyChangeListener)
.map
- the map on which the listener was addedproperty
- the property on which the listener listens to changeslistener
- the listenerpublic static void removeWeakTreeListener(PropertyMap map, PropertyMapTreeListener listener)
addWeakTreeListener(PropertyMap, PropertyMapTreeListener)
.map
- the map on which the listener was addedlistener
- the listener