public final String getSetting ( final String targetName , final int connectionID , final OperationalTextKey textKey ) throws OperationalTextKeyException { try { final SessionConfiguration sc ; synchronized ( sessionConfigs ) { sc = sessionConfigs . get ( targetName ) ; synchronized ( sc ) { if ( sc != null ) { String value = sc . getSetting ( connectionID , textKey ) ; if ( value != null ) { return value ; } } } } } catch ( OperationalTextKeyException e ) { // we had not find a session/connection entry, so we have to search // in the // global settings } final SettingEntry se ; synchronized ( globalConfig ) { se = globalConfig . get ( textKey ) ; synchronized ( se ) { if ( se != null ) { return se . getValue ( ) ; } } } throw new OperationalTextKeyException ( "No OperationalTextKey entry found for key: " + textKey . value ( ) ) ; }
Returns the value of a single parameter instead of all values .