src/main/java/org/jboss/util/property/PropertyMap.java
public void load(String prefix, Map map) throws PropertyException
   {
      // prefix can be null
      if (map == null)
         throw new NullArgumentException("map");

      // set properties for each key in map
      Iterator iter = map.keySet().iterator();
      while (iter.hasNext())
      {
         // make a string key with optional prefix
         String key = String.valueOf(iter.next());
         String name = makePrefixedPropertyName(key, prefix);
         String value = String.valueOf(map.get(name));

         // set the property
         setProperty(name, value);
      }
   }
public void load(String prefix, Map map) throws PropertyException
   {
      // prefix can be null
      if (map == null)
         throw new NullArgumentException("map");

      // set properties for each key in map
      Iterator iter = map.keySet().iterator();
      while (iter.hasNext())
      {
         // make a string key with optional prefix
         String key = String.valueOf(iter.next());
         String name = makePrefixedPropertyName(key, prefix);
         String value = String.valueOf(map.get(name));

         // set the property
         setProperty(name, value);
      }
   }
public void load ( String prefix , Map map ) throws PropertyException { // prefix can be null if ( map == null ) throw new NullArgumentException ( "map" ) ; // set properties for each key in map Iterator iter = map . keySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { // make a string key with optional prefix String key = String . valueOf ( iter . next ( ) ) ; String name = makePrefixedPropertyName ( key , prefix ) ; String value = String . valueOf ( map . get ( name ) ) ; // set the property setProperty ( name , value ) ; } }
Load properties from a map.

@param prefix  Prefix to append to all map keys (or null).
@param map     Map containing properties to load.
@throws PropertyException
Load properties from a map .