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

    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
     
    org.pentaho.reporting.libraries.resourceloader.ResourceKey
     
    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
     
    void
     
    void
    registerFactory(org.pentaho.reporting.libraries.resourceloader.ResourceFactory factory)
     
    void
    registerLoader(org.pentaho.reporting.libraries.resourceloader.ResourceLoader loader)
     
    serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
     
    toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
     

    Methods inherited from class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend

    isResourceUnchanged

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      createKey in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      deriveKey in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      toURL in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      create in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      loadResourceBundle in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
      Throws:
      org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
    • registerDefaultFactories

      public void registerDefaultFactories()
      Specified by:
      registerDefaultFactories in interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      registerDefaultFactories in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
    • registerDefaultLoaders

      public void registerDefaultLoaders()
      Specified by:
      registerDefaultLoaders in interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      registerDefaultLoaders in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
    • registerBundleLoader

      public void registerBundleLoader(org.pentaho.reporting.libraries.resourceloader.ResourceBundleLoader loader)
      Specified by:
      registerBundleLoader in interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      registerBundleLoader in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
    • registerLoader

      public void registerLoader(org.pentaho.reporting.libraries.resourceloader.ResourceLoader loader)
      Specified by:
      registerLoader in interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      registerLoader in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
    • registerFactory

      public void registerFactory(org.pentaho.reporting.libraries.resourceloader.ResourceFactory factory)
      Specified by:
      registerFactory in interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      registerFactory in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      loadRawData in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      deserialize in class org.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 interface org.pentaho.reporting.libraries.resourceloader.ResourceManagerBackend
      Overrides:
      serialize in class org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend
      Throws:
      org.pentaho.reporting.libraries.resourceloader.ResourceException