Logo Search packages:      
Sourcecode: libloader version File versions  Download package

Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes

org::pentaho::reporting::libraries::resourceloader::ResourceManager Class Reference

Collaboration diagram for org::pentaho::reporting::libraries::resourceloader::ResourceManager:
Collaboration graph

List of all members.

Public Member Functions

Resource create (final ResourceKey key, final ResourceKey context, final Class target) throws ResourceLoadingException, ResourceCreationException
Resource create (final ResourceKey key, final ResourceKey context, final Class[] target) throws ResourceLoadingException, ResourceCreationException
Resource create (final ResourceKey key, final ResourceKey context) throws ResourceLoadingException, ResourceCreationException
Resource createDirectly (final Object keyValue, final Class target) throws ResourceLoadingException, ResourceCreationException, ResourceKeyCreationException
ResourceKey createKey (final Object data) throws ResourceKeyCreationException
ResourceKey createKey (final Object data, final Map parameters) throws ResourceKeyCreationException
ResourceKey deriveKey (final ResourceKey parent, final String path, final Map parameters) throws ResourceKeyCreationException
ResourceKey deriveKey (final ResourceKey parent, final String path) throws ResourceKeyCreationException
ResourceKey deserialize (final ResourceKey bundleKey, final String serializedKey) throws ResourceKeyCreationException
ResourceManagerBackend getBackend ()
ResourceBundleDataCache getBundleCache ()
ResourceDataCache getDataCache ()
ResourceFactoryCache getFactoryCache ()
ResourceData load (final ResourceKey key) throws ResourceLoadingException
synchronized ResourceData loadRawData (final ResourceKey key) throws UnrecognizedLoaderException, ResourceLoadingException
synchronized ResourceBundleData loadResourceBundle (final ResourceKey key) throws ResourceLoadingException
void registerBundleDataCache ()
void registerBundleLoader (final ResourceBundleLoader loader)
void registerDataCache ()
void registerDefaultFactories ()
void registerDefaultLoaders ()
void registerDefaults ()
void registerFactory (final ResourceFactory factory)
void registerFactoryCache ()
void registerLoader (final ResourceLoader loader)
 ResourceManager (final ResourceManagerBackend resourceManagerBackend)
 ResourceManager (final ResourceManager parent, final ResourceManagerBackend backend)
 ResourceManager ()
String serialize (final ResourceKey bundleKey, final ResourceKey key) throws ResourceException
void setBundleCache (final ResourceBundleDataCache bundleCache)
void setDataCache (final ResourceDataCache dataCache)
void setFactoryCache (final ResourceFactoryCache factoryCache)
void shutDown ()
URL toURL (final ResourceKey key)

Static Public Attributes

static final String BUNDLE_CACHE_PROVIDER_KEY = "org.pentaho.reporting.libraries.resourceloader.cache.BundleDataCacheProvider"
static final String BUNDLE_LOADER_PREFIX = "org.pentaho.reporting.libraries.resourceloader.bundle.loader."
static final String DATA_CACHE_PROVIDER_KEY = "org.pentaho.reporting.libraries.resourceloader.cache.DataCacheProvider"
static final String FACTORY_CACHE_PROVIDER_KEY = "org.pentaho.reporting.libraries.resourceloader.cache.FactoryCacheProvider"
static final String FACTORY_TYPE_PREFIX = "org.pentaho.reporting.libraries.resourceloader.factory.type."
static final String LOADER_PREFIX = "org.pentaho.reporting.libraries.resourceloader.loader."

Private Member Functions

boolean isResourceCacheable (final Resource newResource)
boolean isResourceDataCacheable (final ResourceData data)
boolean isValidData (final ResourceDataCacheEntry cached, final ResourceData data) throws ResourceLoadingException

Private Attributes

ResourceManagerBackend backend
ResourceBundleDataCache bundleCache
ResourceDataCache dataCache
ResourceFactoryCache factoryCache

Static Private Attributes

static final Set failedModules = new HashSet()
static final Log logger = LogFactory.getLog(ResourceManager.class)

Detailed Description

The resource manager takes care about the loaded resources, performs caching, if needed and is the central instance when dealing with resources. Resource loading is a two-step process. In the first step, the ResourceLoader accesses the physical storage or network connection to read in the binary data. The loaded ResourceData carries versioning information with it an can be cached indendently from the produced result. Once the loading is complete, a ResourceFactory interprets the binary data and produces a Java-Object from it.

Resources are identified by an Resource-Key and some optional loader parameters (which can be used to parametrize the resource-factories).

Thomas Morgner
See also:

Definition at line 58 of file ResourceManager.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index