|
If not dev, correct this wrong version label in perforce3227:3227\buildenvBE.Japro<CODELINE>src_macrospackjavadoc.properties | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.af.service.administration.api.i18n.ResourceBundleLocalizationCallback
public class ResourceBundleLocalizationCallback
Provides a resource-bundle-based localization callback (i.e. an
implementation of LocalizationCallback) for registration with the
Adapter Framework.
This implementation will look up any string it receives for localization
through localizeString in a given resource bundle and return the
lookup result (or the original string if the lookup failed) as localized
string.
LocalizationCallback,
ResourceBundle| Constructor Summary | |
|---|---|
ResourceBundleLocalizationCallback(String rbName,
ClassLoader classLoader)
Constructs a ResourceBundleLocalizationCallback instance
with a class loader used to load the resource bundle. |
|
| Method Summary | |
|---|---|
String |
localizeString(String source,
Locale targetLocale)
Requests an adapter to localize a given string into a target locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceBundleLocalizationCallback(String rbName,
ClassLoader classLoader)
ResourceBundleLocalizationCallback instance
with a class loader used to load the resource bundle. Make sure to specify
a class loader (typically the adapter's class loader that can be obtained
by calling getClass().getClassLoader() on any of the classes
that make up the adapter) that the resource bundle is actually visible in.
rbName - the base name of the resource bundle to useclassLoader - the class loader to use when loading the resource bundleResourceBundle| Method Detail |
|---|
public String localizeString(String source,
Locale targetLocale)
throws LocalizationNotPossibleException
LocalizationCallback
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.
localizeString in interface LocalizationCallbacksource - the string to be localizedtargetLocale - the target locale to localize the string to
LocalizationNotPossibleException - if the string could not be localized
|
If not dev, correct this wrong version label in perforce3227:3227\buildenvBE.Japro<CODELINE>src_macrospackjavadoc.properties | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||