public NonBlockingProperties getPropertyGroup ( final String sPrefix , final boolean bStripPrefix , final String [ ] excludedPrefixes ) { final NonBlockingProperties group = new NonBlockingProperties ( ) ; String prefix = sPrefix ; if ( ! prefix . endsWith ( "." ) ) prefix += "." ; for ( final String key : m_aProps . keySet ( ) ) { if ( key . startsWith ( prefix ) ) { boolean bExclude = false ; if ( excludedPrefixes != null ) { for ( int i = 0 ; i < excludedPrefixes . length && ! bExclude ; i ++ ) { bExclude = key . startsWith ( excludedPrefixes [ i ] ) ; } } if ( ! bExclude ) { final String value = getStringProperty ( key , "" ) ; if ( bStripPrefix ) group . put ( key . substring ( prefix . length ( ) ) , value ) ; else group . put ( key , value ) ; } } } return group ; }
Get all properties that start with the given prefix .