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 .