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

ResourceData org::jfree::resourceloader::modules::cache::oscache::OSResourceDataCache::put ( ResourceManager  caller,
ResourceData  data 
) throws ResourceLoadingException [inline]

Stores the given data on the cache. The data is registered by its primary key. The cache has to store the current version of the data.

Parameters:
data the data to be stored in the cache
Returns:
the resource data object, possibly wrapped by a cache-specific implementation.

Implements org::jfree::resourceloader::cache::ResourceDataCache.

Definition at line 96 of file OSResourceDataCache.java.

  {
    final ResourceData cdata = CachingResourceData.createCached(data);
    final String ext = CacheUtility.externalizeKey(data.getKey());
    if (ext == null)
    {
      return cdata;
    }
    dataCache.putInCache(ext, new DefaultResourceDataCacheEntry(cdata, caller));
    return cdata;
  }


Generated by  Doxygen 1.6.0   Back to index