|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.util.WcmStringResourceLoader
Utility for loading additional WcmString or WcmException resource bundles.
Sample Usage:
String resourcePath = localPath + File.separator + "resources";
WcmStringResourceLoader.load(resourcePath, "WcmStringConfiguration", WcmString.class);
WcmStringResourceLoader.load(resourcePath, "WcmExceptionConfiguration", WcmException.class);
Constructor Summary | |
WcmStringResourceLoader()
|
Method Summary | |
static boolean |
load(java.util.Locale locale,
java.lang.String path,
java.lang.String name,
java.lang.Class resourceClass)
Deprecated. Use WcmStringResources.addStringBundleToPath and/or WcmStringResources.addExcetpionBundleToPath instead. |
static boolean |
load(java.lang.String path,
java.lang.String name,
java.lang.Class resourceClass)
Deprecated. Use WcmStringResources.addStringBundleToPath and/or WcmStringResources.addExcetpionBundleToPath instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WcmStringResourceLoader()
Method Detail |
public static boolean load(java.util.Locale locale, java.lang.String path, java.lang.String name, java.lang.Class resourceClass) throws java.lang.Exception
locale
- the client localepath
- Local path to the location of the resources.name
- Name of the resource configuration file. Either
WcmStringConfiguration or WcmExceptionConfiguration.resourceClass
- Either WcmString.class or WcmException.class.
java.lang.Exception
- If there are unexpected problems retrieving a particular resource class.public static boolean load(java.lang.String path, java.lang.String name, java.lang.Class resourceClass) throws java.lang.Exception
path
- Local path to the location of the resources.name
- Name of the resource configuration file. Either
WcmStringConfiguration or WcmExceptionConfiguration.resourceClass
- Either WcmString.class or WcmException.class.
java.lang.Exception
- If there are unexpected problems retrieving a particular resource class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |