public void readConnections ( ConfigParams connections ) { synchronized ( _lock ) { _items . clear ( ) ; for ( Map . Entry < String , String > entry : connections . entrySet ( ) ) { DiscoveryItem item = new DiscoveryItem ( ) ; item . key = entry . getKey ( ) ; item . connection = ConnectionParams . fromString ( entry . getValue ( ) ) ; _items . add ( item ) ; } } }
Reads connections from configuration parameters . Each section represents an individual Connection params