com.sapportals.wcm.util.resource
Class ResourceBundles
java.lang.Object
com.sapportals.wcm.util.resource.ResourceBundles
public class ResourceBundles
- extends Object
A helper class to load resource bundles.
|
Method Summary |
boolean |
exists()
|
boolean |
exists(String key)
|
boolean |
exists(String key,
Locale locale)
|
static ResourceBundles |
getBundle(String baseName)
|
String |
getString(String key)
|
String |
getString(String key,
Locale locale)
|
String |
getString(String key,
Locale locale,
Object obj)
|
String |
getString(String key,
Locale locale,
Object[] objs)
|
String |
getString(String key,
Locale locale,
Object obj1,
Object obj2)
|
String |
getString(String key,
Object obj)
|
String |
getString(String key,
Object[] objs)
|
String |
getString(String key,
Object obj1,
Object obj2)
|
static void |
invalidate()
Invalidates the cached resource bundles |
static void |
registerClassLoader(ClassLoader cl)
Deprectated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
invalidate
public static void invalidate()
- Invalidates the cached resource bundles
getString
public String getString(String key,
Locale locale,
Object[] objs)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Object[] objs)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Object obj)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Object obj1,
Object obj2)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Locale locale)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Locale locale,
Object obj)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key,
Locale locale,
Object obj1,
Object obj2)
throws MissingResourceException
- Throws:
MissingResourceException
getString
public String getString(String key)
throws MissingResourceException
- Throws:
MissingResourceException
exists
public boolean exists(String key,
Locale locale)
exists
public boolean exists(String key)
registerClassLoader
public static void registerClassLoader(ClassLoader cl)
- Deprectated. This method has no effect.
- Parameters:
cl -
getBundle
public static ResourceBundles getBundle(String baseName)
exists
public boolean exists()
- Returns:
- flag, stating if with the current classloader, the given resource
bundle can actually be loaded or not.
If
false is returned, this might either be due to class-
loading problems or to a spelling or deployment mistake. - Since:
- NewYork
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2014 SAP AG Complete Copyright Notice