private void buildupPropertiesBundles ( final File file ) throws IOException { File [ ] files = file . listFiles ( ) ; for ( File f : files ) { if ( f . getName ( ) . endsWith ( "properties" ) ) { String bundleName = f . getName ( ) . substring ( 0 , f . getName ( ) . indexOf ( "properties" ) - 1 ) ; LOG . info ( "Loading: " + bundleName ) ; ResourceBundle bundle = new PropertyResourceBundle ( new FileInputStream ( f ) ) ; bundles . put ( bundleName , bundle ) ; } } }
Loads all properties files into a bundle cache .