base/common/src/main/com/thesett/common/state/BaseState.java
public void addPropertyChangeListener(String p, PropertyChangeListener l)
    {
        // Check if the listeneres list has been initialized
        if (listeners == null)
        {
            // Listeneres list not initialized so create a new list
            listeners = new ArrayList();
        }

        synchronized (listeners)
        {
            // Add the new listener to the list
            listeners.add(l);
        }
    }
public void addPropertyChangeListener(String p, PropertyChangeListener l)
    {
        // Check if the listeneres list has been initialized
        if (listeners == null)
        {
            // Listeneres list not initialized so create a new list
            listeners = new ArrayList();
        }

        synchronized (listeners)
        {
            // Add the new listener to the list
            listeners.add(l);
        }
    }
Adds a property changed listener to be notified of changes to the named property.

@param l The listener/
@param p The property (ignored, notifies of changes to any properties).