|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.localization.ResourceAccessor
com.sap.netweaver.bc.rf.util.exception.ResourceAccessor
Implements a resource accessor wrapping the standard exception resource accessor class ({@link com.sap.localization.ResourceAccessor). This class also allows to access messages from resource bundles accessed by arbitrary class loaders, caches them and all accessed resource bundles.
| Method Summary | |
static ResourceAccessor |
getInstance(ClassLoader resourceBundleClassLoader,
String resourceBundleName)
Get the instance attribute of the ResourceAccessor class. |
String |
getMessageText(Locale locale,
String key)
Get the messageText attribute of the ResourceAccessor object. |
ClassLoader |
getResourceBundleClassLoader()
Get class loader having access to the resource bundle. |
String |
getResourceBundleName()
Get resource bundle name used to look up resource bundle. |
ResourceMessage |
getResourceMessage(String key)
Create resource message. |
ResourceMessage |
getResourceMessage(String key,
Object[] args)
Create resource message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public String getMessageText(Locale locale,
String key)
locale - locale for localized messagekey - resource identifier for localized message
public ClassLoader getResourceBundleClassLoader()
public String getResourceBundleName()
public ResourceMessage getResourceMessage(String key)
key - resource identifier for localized message
public ResourceMessage getResourceMessage(String key,
Object[] args)
key - resource identifier for localized messageargs - message arguments inserted by MessageFormat means
public static ResourceAccessor getInstance(ClassLoader resourceBundleClassLoader,
String resourceBundleName)
resourceBundleClassLoader - class loader having access to the resource
bundleresourceBundleName - resource bundle name used to look up resource
bundle
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||