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

ResourceData org::jfree::resourceloader::modules::cache::ehcache::EHResourceDataCache::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 89 of file EHResourceDataCache.java.

  {
    final ResourceData cdata = CachingResourceData.createCached(data);
    dataCache.put(new Element(data.getKey(), new DefaultResourceDataCacheEntry(cdata, caller)));
    return cdata;
  }


Generated by  Doxygen 1.6.0   Back to index