src/main/java/org/jboss/util/property/PropertyGroup.java
protected void addPropertyListener(final BoundPropertyListener listener)
   {
      // get the bound property name
      String name = makePropertyName(listener.getPropertyName());

      // get the bound listener list for the property
      List list = (List) boundListeners.get(name);

      // if list is null, then add a new list
      if (list == null)
      {
         list = new ArrayList();
         boundListeners.put(name, list);
      }

      // if listener is not in the list already, then add it
      if (!list.contains(listener))
      {
         list.add(listener);
         // notify listener that is is bound
         listener.propertyBound(this);
      }
   }
protected void addPropertyListener(final BoundPropertyListener listener)
   {
      // get the bound property name
      String name = makePropertyName(listener.getPropertyName());

      // get the bound listener list for the property
      List list = (List) boundListeners.get(name);

      // if list is null, then add a new list
      if (list == null)
      {
         list = new ArrayList();
         boundListeners.put(name, list);
      }

      // if listener is not in the list already, then add it
      if (!list.contains(listener))
      {
         list.add(listener);
         // notify listener that is is bound
         listener.propertyBound(this);
      }
   }
protected void addPropertyListener ( final BoundPropertyListener listener ) { // get the bound property name String name = makePropertyName ( listener . getPropertyName ( ) ) ; // get the bound listener list for the property List list = ( List ) boundListeners . get ( name ) ; // if list is null, then add a new list if ( list == null ) { list = new ArrayList ( ) ; boundListeners . put ( name , list ) ; } // if listener is not in the list already, then add it if ( ! list . contains ( listener ) ) { list . add ( listener ) ; // notify listener that is is bound listener . propertyBound ( this ) ; } }
Add a bound property listener.

<p>Generates a fully qualified property name and adds the listener
under that name.

@param listener   Bound property listener to add.
Add a bound property listener .