public boolean addLocalizationPoint ( LWMConfig lp , DestinationDefinition dd ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "addLocalizationPoint" , lp ) ; } boolean valid = false ; LocalizationDefinition ld = ( ( JsAdminFactoryImpl ) jsaf ) . createLocalizationDefinition ( lp ) ; if ( ! isInZOSServentRegion ( ) ) { _mpAdmin = ( ( SIMPAdmin ) _me . getMessageProcessor ( ) ) . getAdministrator ( ) ; } try { _mpAdmin . createDestinationLocalization ( dd , ld ) ; updatedDestDefList . add ( dd ) ; updatedLocDefList . add ( ld ) ; LocalizationEntry lEntry = new LocalizationEntry ( ld ) ; lpMap . put ( ld . getName ( ) , lEntry ) ; MasterEntry newMasterEntry = new MasterEntry ( ) ; newMasterEntry . setDestinationLocalization ( ld ) ; masterMap . put ( dd . getName ( ) , newMasterEntry ) ; valid = true ; } catch ( Exception e ) { SibTr . error ( tc , "LOCALIZATION_EXCEPTION_SIAS0113" , e ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "addLocalizationPoint" , Boolean . valueOf ( valid ) ) ; } return valid ; }
Add a single localization point to this JsLocalizer object and tell MP about it . This method is used by dynamic config in tWAS .