Interface FileCache

All Known Implementing Classes:
DefaultFileCache, WeakRefFileCache

public interface FileCache
Interface defining a file caching system without specifying an implementation.

The interface is designed to abstract various file caching implementations so that we can use one content loading mechanism, but allow it to use different caching schemes dependent on the need of the application.

When using a cache, it is highly recommended that the URI passed in does not include the reference part (any piece after the #) as this means that you cannot cache the entire file or reference the file and extra another part of it. For example, when referring to a proto definition, you would want to store the entire file here so that any further protos in that same file do not need to be reloaded. This relies on you, the caller to make sure that the reference part is stripped from the URI string.

The implementor of this interface is free to do whatever they want with the requests - including completely ignoring it.

Version:
$Revision: 1.1 $
Author:
Justin Couch