public interface LocalizationCallback extends AdapterCallback
Currently, this will be called for any string information supplied to the
MonitoringManager
interface. An implementation of this interface
based upon resource bundles is available in
ResourceBundleLocalizationCallback
.
Note: The adapter must not make any assumptions about the order in
which the callback is invoked. Especially, the localizeString
method may be called before the API returns, that was passed a localizeable
string.
Modifier and Type | Method and Description |
---|---|
String |
localizeString(String source,
Locale targetLocale)
Requests an adapter to localize a given string into a target locale.
|
String localizeString(String source, Locale targetLocale) throws LocalizationNotPossibleException
If the adapter is unable to support the requested target locale, the
source string should be localized into English. If English is not
available as a target locale either, the adapter needs to throw a
LocalizationNotPossibleException
.
source
- the string to be localizedtargetLocale
- the target locale to localize the string toLocalizationNotPossibleException
- if the string could not be localizedAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice