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

org::jfree::resourceloader::ResourceManager Class Reference

List of all members.


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).

Author:
Thomas Morgner
See also:
ResourceData

ResourceLoader

ResourceFactory

Definition at line 66 of file ResourceManager.java.


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) throws ResourceLoadingException, ResourceCreationException
Resource create (final ResourceKey key, final ResourceKey context, final Class target) throws ResourceLoadingException, ResourceCreationException
Resource createDirectly (final Object keyValue, final Class target) throws ResourceLoadingException, ResourceCreationException, ResourceKeyCreationException
synchronized ResourceKey createKey (final Object data, final Map parameters) throws ResourceKeyCreationException
synchronized ResourceKey createKey (final Object data) 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
ResourceDataCache getDataCache ()
ResourceFactoryCache getFactoryCache ()
ResourceData load (final ResourceKey key) throws ResourceLoadingException
void registerDataCache ()
void registerDefaultFactories ()
void registerDefaultLoaders ()
void registerDefaults ()
void registerFactory (final ResourceFactory factory)
void registerFactoryCache ()
void registerLoader (final ResourceLoader loader)
void setDataCache (final ResourceDataCache dataCache)
void setFactoryCache (final ResourceFactoryCache factoryCache)
URL toURL (final ResourceKey key)

Static Public Attributes

static final String DATA_CACHE_PROVIDER_KEY = "org.jfree.resourceloader.cache.DataCacheProvider"
static final String FACTORY_CACHE_PROVIDER_KEY = "org.jfree.resourceloader.cache.FactoryCacheProvider"

Private Member Functions

Resource autoCreateResource (final ResourceKey key, final ResourceKey context) throws ResourceLoadingException, ResourceCreationException
ResourceLoader findBySchema (final ResourceKey key)
boolean isResourceUnchanged (final Resource resource) throws ResourceLoadingException
boolean isSupportedTarget (final Class[] target, final ResourceFactory fact)
Resource performCreate (final ResourceData data, final ResourceFactory fact, final ResourceKey context) throws ResourceLoadingException, ResourceCreationException

Private Attributes

ResourceDataCache dataCache
ResourceFactoryCache factoryCache
ArrayList resourceFactories
ArrayList resourceLoaders

Static Private Attributes

static final String FACTORY_TYPE_PREFIX = "org.jfree.resourceloader.factory.type."
static final Set failedModules = new HashSet()
static final String LOADER_PREFIX = "org.jfree.resourceloader.loader."

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

Generated by  Doxygen 1.6.0   Back to index