org.pentaho.reporting.libraries.resourceloader
public interface ResourceBundleLoader
Modifier and Type | Method and Description |
---|---|
ResourceKey |
deriveKey(ResourceKey parent,
java.lang.String path,
java.util.Map factoryKeys)
Derives a new resource key from the given key.
|
boolean |
isSupportedKey(ResourceKey key)
Checks, whether this resource loader implementation was responsible for
creating this key.
|
ResourceBundleData |
loadBundle(ResourceManager resourceManager,
ResourceKey key)
Tries to load the bundle.
|
ResourceBundleData loadBundle(ResourceManager resourceManager, ResourceKey key) throws ResourceLoadingException
key
- the resource key pointing to the bundle.ResourceLoadingException
- if something goes wrong.boolean isSupportedKey(ResourceKey key)
key
- the key that should be tested.ResourceKey deriveKey(ResourceKey parent, java.lang.String path, java.util.Map factoryKeys) throws ResourceKeyCreationException
parent
- the parentpath
- the derived path (can be null).factoryKeys
- the optional factory keys (can be null).ResourceKeyCreationException
- if the key cannot be derived for any
reason.