Class BundleResourceManagerBackend
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
- org.pentaho.reporting.libraries.docbundle.BundleResourceManagerBackend
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
public class BundleResourceManagerBackend extends org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
A resource-manager that first tries to full-fill any requests using the current bundle before it calls back into the original resource-manager.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description BundleResourceManagerBackend(org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend backend, org.pentaho.reporting.libraries.resourceloader.ResourceKey outsideContextKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.reporting.libraries.resourceloader.Resource
create(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceData data, org.pentaho.reporting.libraries.resourceloader.ResourceKey context, Class[] target)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
createKey(Object data, Map<? extends org.pentaho.reporting.libraries.resourceloader.ParameterKey,? extends Object> parameters)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent, String path, Map<? extends org.pentaho.reporting.libraries.resourceloader.ParameterKey,? extends Object> parameters)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, String serializedKey)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getBundleMainKey()
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getOutsideContextKey()
org.pentaho.reporting.libraries.resourceloader.ResourceData
loadRawData(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
org.pentaho.reporting.libraries.resourceloader.ResourceBundleData
loadResourceBundle(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
void
registerBundleLoader(org.pentaho.reporting.libraries.resourceloader.ResourceBundleLoader loader)
void
registerDefaultFactories()
void
registerDefaultLoaders()
void
registerFactory(org.pentaho.reporting.libraries.resourceloader.ResourceFactory factory)
void
registerLoader(org.pentaho.reporting.libraries.resourceloader.ResourceLoader loader)
String
serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
URL
toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
-
-
-
Constructor Detail
-
BundleResourceManagerBackend
public BundleResourceManagerBackend(org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend backend, org.pentaho.reporting.libraries.resourceloader.ResourceKey outsideContextKey)
-
-
Method Detail
-
getOutsideContextKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getOutsideContextKey()
-
getBundleMainKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleMainKey()
-
createKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey createKey(Object data, Map<? extends org.pentaho.reporting.libraries.resourceloader.ParameterKey,? extends Object> parameters) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
- Specified by:
createKey
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
createKey
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
-
deriveKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent, String path, Map<? extends org.pentaho.reporting.libraries.resourceloader.ParameterKey,? extends Object> parameters) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
- Specified by:
deriveKey
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
deriveKey
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
-
toURL
public URL toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
- Specified by:
toURL
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
toURL
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
create
public org.pentaho.reporting.libraries.resourceloader.Resource create(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceData data, org.pentaho.reporting.libraries.resourceloader.ResourceKey context, Class[] target) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException, org.pentaho.reporting.libraries.resourceloader.ResourceCreationException
- Specified by:
create
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
create
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
org.pentaho.reporting.libraries.resourceloader.ResourceCreationException
-
loadResourceBundle
public org.pentaho.reporting.libraries.resourceloader.ResourceBundleData loadResourceBundle(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
- Specified by:
loadResourceBundle
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
loadResourceBundle
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
registerDefaultFactories
public void registerDefaultFactories()
- Specified by:
registerDefaultFactories
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
registerDefaultFactories
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
registerDefaultLoaders
public void registerDefaultLoaders()
- Specified by:
registerDefaultLoaders
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
registerDefaultLoaders
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
registerBundleLoader
public void registerBundleLoader(org.pentaho.reporting.libraries.resourceloader.ResourceBundleLoader loader)
- Specified by:
registerBundleLoader
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
registerBundleLoader
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
registerLoader
public void registerLoader(org.pentaho.reporting.libraries.resourceloader.ResourceLoader loader)
- Specified by:
registerLoader
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
registerLoader
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
registerFactory
public void registerFactory(org.pentaho.reporting.libraries.resourceloader.ResourceFactory factory)
- Specified by:
registerFactory
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
registerFactory
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
-
loadRawData
public org.pentaho.reporting.libraries.resourceloader.ResourceData loadRawData(org.pentaho.reporting.libraries.resourceloader.ResourceManager frontEnd, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException, org.pentaho.reporting.libraries.resourceloader.UnrecognizedLoaderException
- Specified by:
loadRawData
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
loadRawData
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
org.pentaho.reporting.libraries.resourceloader.UnrecognizedLoaderException
-
deserialize
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, String serializedKey) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
- Specified by:
deserialize
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
deserialize
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
-
serialize
public String serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceException
- Specified by:
serialize
in interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
- Overrides:
serialize
in classorg.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceException
-
-