src/main/java/org/jboss/util/property/PropertyMap.java
/**
    * Add a property listener.
    *
    * @param listener   Property listener to add.
    */
Add a property listener.
@param listener   Property listener to add.
Add a property listener . @param listener Property listener to add .
public void addPropertyListener(PropertyListener listener)
   {
      if (listener == null)
         throw new NullArgumentException("listener");
      if (listener instanceof BoundPropertyListener)
      {
         addPropertyListener((BoundPropertyListener) listener);
      }
      else
      {
         if (!unboundListeners.contains(listener))
            unboundListeners.add(listener);
      }
   }
public void addPropertyListener ( PropertyListener listener ) { if ( listener == null ) throw new NullArgumentException ( "listener" ) ; if ( listener instanceof BoundPropertyListener ) { addPropertyListener ( ( BoundPropertyListener ) listener ) ; } else { if ( ! unboundListeners . contains ( listener ) ) unboundListeners . add ( listener ) ; } }
Add a property listener.
Add a property listener .
// only add the listener if it is not in the list already