com.google.gwt.i18n.rebind
Class ResourceFactory

java.lang.Object
  extended by com.google.gwt.i18n.rebind.ResourceFactory

public abstract class ResourceFactory
extends java.lang.Object

Creates resources.


Field Summary
static char LOCALE_SEPARATOR
          Separator between class name and locale in resource files.
 
Constructor Summary
ResourceFactory()
           
 
Method Summary
static void clearCache()
          Clears the resource cache.
static AbstractResource.ResourceList getBundle(TreeLogger logger, JClassType topClass, GwtLocale bundleLocale, boolean isConstants, java.util.Map<java.lang.String,Resource> resourceMap)
           
static java.lang.String getResourceName(JClassType targetClass)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE_SEPARATOR

public static final char LOCALE_SEPARATOR
Separator between class name and locale in resource files. Should not appear in valid localizable class names.

See Also:
Constant Field Values
Constructor Detail

ResourceFactory

public ResourceFactory()
Method Detail

clearCache

public static void clearCache()
Clears the resource cache.


getBundle

public static AbstractResource.ResourceList getBundle(TreeLogger logger,
                                                      JClassType topClass,
                                                      GwtLocale bundleLocale,
                                                      boolean isConstants,
                                                      java.util.Map<java.lang.String,Resource> resourceMap)
Parameters:
logger -
topClass -
bundleLocale -
isConstants -
resourceMap - a map of available Resources by partial path; obtain this by calling com.google.gwt.core.ext.GeneratorContext#getResourcesOracle().getResourceMap()
Returns:
resource list

getResourceName

public static java.lang.String getResourceName(JClassType targetClass)