public final class ResourceManager extends Object implements Registrable
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL_RESOURCES_REGISTERED_EVENT |
| Constructor and Description |
|---|
ResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(String name,
URL themeUrl) |
void |
addResource(String name,
URL themeUrl,
boolean local) |
void |
clear()
This method is called when the object is unregistered.
|
void |
clearGlobalCache(String themeName) |
void |
flush() |
static String |
getBankResource(String resourceBankName,
String collectionName,
String typeName,
String resourceName) |
static byte[] |
getBinaryBankResource(String resourceBankName,
String collectionName,
String typeName,
String resourceName) |
List<String> |
getGlobalResourcesFor(String themeUrl) |
List<String> |
getGlobalResourcesFor(URL themeUrl) |
List<String> |
getResourcesFor(String themeUrl) |
public static final String GLOBAL_RESOURCES_REGISTERED_EVENT
public void flush()
public void clearGlobalCache(String themeName)
public static byte[] getBinaryBankResource(String resourceBankName, String collectionName, String typeName, String resourceName) throws ThemeException
ThemeExceptionpublic static String getBankResource(String resourceBankName, String collectionName, String typeName, String resourceName) throws ThemeException
ThemeExceptionpublic void clear()
Registrableclear in interface RegistrableCopyright © 2014 Nuxeo SA. All rights reserved.