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

      PropertyReader reader = null;

      try
      {
         Class type = Class.forName(className);
         reader = (PropertyReader) type.newInstance();
      }
      catch (Exception e)
      {
         throw new PropertyException(e);
      }
         
      // load the properties from the source
      load(reader);
   }
public void load(String className) throws PropertyException, IOException
   {
      if (className == null)
         throw new NullArgumentException("className");

      PropertyReader reader = null;

      try
      {
         Class type = Class.forName(className);
         reader = (PropertyReader) type.newInstance();
      }
      catch (Exception e)
      {
         throw new PropertyException(e);
      }
         
      // load the properties from the source
      load(reader);
   }
public void load ( String className ) throws PropertyException , IOException { if ( className == null ) throw new NullArgumentException ( "className" ) ; PropertyReader reader = null ; try { Class type = Class . forName ( className ) ; reader = ( PropertyReader ) type . newInstance ( ) ; } catch ( Exception e ) { throw new PropertyException ( e ) ; } // load the properties from the source load ( reader ) ; }
Load properties from a PropertyReader specifed by the given class name.

@param className     Class name of a PropertyReader to read from.
@throws PropertyException
@throws IOException
Load properties from a PropertyReader specifed by the given class name .