com.google.gwt.i18n.rebind
Class ResourceFactory
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ResourceFactory
public ResourceFactory()
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)