com.filenet.wcm.toolkit.util
Class WcmStringResourceLoader

java.lang.Object
  extended bycom.filenet.wcm.toolkit.util.WcmStringResourceLoader

public class WcmStringResourceLoader
extends java.lang.Object

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

WcmStringResourceLoader

public WcmStringResourceLoader()
Method Detail

load

public static boolean load(java.util.Locale locale,
                           java.lang.String path,
                           java.lang.String name,
                           java.lang.Class resourceClass)
                    throws java.lang.Exception
Deprecated. Use WcmStringResources.addStringBundleToPath and/or WcmStringResources.addExcetpionBundleToPath instead.

Loads additional WcmString or WcmException resource bundles.

Parameters:
locale - the client locale
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.
Returns:
true if the resource loading is successful.
Throws:
java.lang.Exception - If there are unexpected problems retrieving a particular resource class.

load

public static boolean load(java.lang.String path,
                           java.lang.String name,
                           java.lang.Class resourceClass)
                    throws java.lang.Exception
Deprecated. Use WcmStringResources.addStringBundleToPath and/or WcmStringResources.addExcetpionBundleToPath instead.

Loads additional WcmString or WcmException resource bundles.

Parameters:
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.
Returns:
true if the resource loading is successful.
Throws:
java.lang.Exception - If there are unexpected problems retrieving a particular resource class.


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.