protected Properties getPropertiesUsingClasspath ( ) { /*log.fine("getPropertiesUsingClasspath: called");*/ // Try to open the properties resource name as an input stream from the classpath InputStream is = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( getPropertiesResourceName ( ) ) ; // Use PropertiesHelper to try to load the properties from the input stream if one was succesfully created if ( is != null ) { try { return PropertiesHelper . getProperties ( is ) ; } catch ( IOException e ) { /*log.fine("Could not load properties from classpath");*/ // Failure of this method is noted, so exception is ignored. e = null ; } } return null ; }
Tries to load the properties from the classpath using the classloader for this class .