public void loadProperties ( String prefix ) { List < Property > props = null ; try { props = getListByPrefix ( prefix ) ; } catch ( Exception e ) { log . error ( "Error retrieving properties with prefix: " + prefix , e ) ; return ; } for ( Property prop : props ) { if ( prop . getName ( ) != null ) { this . properties . put ( prop . getName ( ) , prop ) ; } } }
Loads all property objects beginning with the specified prefix . The property objects are stored in a map indexed by the property name for easy retrieval .