src/main/java/org/jboss/util/property/PropertyContainer.java
protected void bindField(final String name, final String propertyName) {
      if (name == null || name.equals(""))
         throw new IllegalArgumentException("name");
      if (propertyName == null || propertyName.equals(""))
         throw new IllegalArgumentException("propertyName");

      addPropertyListener
         (new FieldBoundPropertyListener(this, name, propertyName));
   }
protected void bindField(final String name, final String propertyName) {
      if (name == null || name.equals(""))
         throw new IllegalArgumentException("name");
      if (propertyName == null || propertyName.equals(""))
         throw new IllegalArgumentException("propertyName");

      addPropertyListener
         (new FieldBoundPropertyListener(this, name, propertyName));
   }
protected void bindField ( final String name , final String propertyName ) { if ( name == null || name . equals ( "" ) ) throw new IllegalArgumentException ( "name" ) ; if ( propertyName == null || propertyName . equals ( "" ) ) throw new IllegalArgumentException ( "propertyName" ) ; addPropertyListener ( new FieldBoundPropertyListener ( this , name , propertyName ) ) ; }
Creates a {@link FieldBoundPropertyListener} for the field and
property name and adds it the underlying property group.

@param name          The field name to bind values to.
@param propertyName  The property name to bind to.

@throws IllegalArgumentException    Field of property name is null or
empty.
Creates a { @link FieldBoundPropertyListener } for the field and property name and adds it the underlying property group .