com.crystaldecisions.reports.common
Class CrystalResourcesFactory

java.lang.Object
  extended by com.crystaldecisions.reports.common.CrystalResourcesFactory

public final class CrystalResourcesFactory
extends java.lang.Object

Required by the CrystalException class. This class is used to specify the resource bundle.


Constructor Summary
CrystalResourcesFactory(java.lang.String bundleName)
           Constructs a CrystalResourcesFactory object that specifies the resources bundle passed in.
CrystalResourcesFactory(java.lang.String bundleName, java.lang.ClassLoader loader)
           Constructs a CrystalResourcesFactory object that specifies the resources bundle passed in.
 
Method Summary
 CrystalResources getInstance(java.util.Locale locale)
           Gets a CrystalResources object.
 java.lang.String getLocalizedMessage(java.util.Locale locale, java.lang.String resourceKey, java.lang.Object substitutionStrings)
          Get the localized message for the given key in the given locale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrystalResourcesFactory

public CrystalResourcesFactory(java.lang.String bundleName)

Constructs a CrystalResourcesFactory object that specifies the resources bundle passed in.

Parameters:
bundleName - the name of the resources bundle whose format is defined by the java.util.ResourceBundle class

CrystalResourcesFactory

public CrystalResourcesFactory(java.lang.String bundleName,
                               java.lang.ClassLoader loader)

Constructs a CrystalResourcesFactory object that specifies the resources bundle passed in.

Parameters:
bundleName - the name of the resources bundle whose format is defined by the java.util.ResourceBundle class
loader - the ClassLoader to use to load the resources bundle
Method Detail

getInstance

public CrystalResources getInstance(java.util.Locale locale)

Gets a CrystalResources object.

Returns:
a CrystalResources object

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale,
                                            java.lang.String resourceKey,
                                            java.lang.Object substitutionStrings)
Get the localized message for the given key in the given locale.

Parameters:
locale -
resourceKey -
substitutionStrings -
Returns:
the localized message