org.pentaho.reporting.libraries.resourceloader
public class DefaultResourceManagerBackend extends Object implements ResourceManagerBackend
Constructor Summary | |
---|---|
DefaultResourceManagerBackend() |
Method Summary | |
---|---|
Resource | create(ResourceManager frontEnd, ResourceData data, ResourceKey context, Class[] target) |
ResourceKey | createKey(Object data, Map parameters) |
ResourceKey | deriveKey(ResourceKey parent, String path, Map parameters)
Derives a new key from the given resource-key. |
boolean | isResourceUnchanged(ResourceManager frontEnd, Resource resource) |
ResourceData | loadRawData(ResourceManager frontEnd, ResourceKey key) |
ResourceBundleData | loadResourceBundle(ResourceManager frontEnd, ResourceKey key)
Tries to find the first resource-bundle-loader that would be able to process the key.
|
void | registerBundleLoader(ResourceBundleLoader loader) |
void | registerDefaultFactories() |
void | registerDefaultLoaders() |
void | registerFactory(ResourceFactory factory) |
void | registerLoader(ResourceLoader loader) |
URL | toURL(ResourceKey key) |
Parameters: parent the parent key, or null to interpret the path as absolute key. path the relative path, that is used to derive the key. parameters a optional map containing resource-key parameters.
Returns: the derived key.
Throws: ResourceKeyCreationException if deriving the key failed.
Parameters: key the resource-key.
Returns: the resourceloader for that key, or null, if no resource-loader is able to process the key.
Throws: ResourceLoadingException if an error occured.