Class NullFilesCache

  • All Implemented Interfaces:
    FilesCache, VfsComponent

    public class NullFilesCache
    extends AbstractFilesCache

    A FilesCache implementation.
    This implementation never ever caches a single file.

    Notice: if you use resolveFile(uri) multiple times with the same path, the system will always create a new instance. Changes on one instance of this file are not seen by the others.

    Version:
    $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
    Author:
    Mario Ivankovits
    • Constructor Detail

      • NullFilesCache

        public NullFilesCache()
    • Method Detail

      • putFile

        public void putFile​(FileObject file)
        Description copied from interface: FilesCache
        add a fileobject to the cache
        Parameters:
        file - the file
      • getFile

        public FileObject getFile​(FileSystem filesystem,
                                  FileName name)
        Description copied from interface: FilesCache
        retrieve a file from the cache by its name
        name - the name
        Returns:
        the fileobject or null if file is not cached
      • clear

        public void clear​(FileSystem filesystem)
        Description copied from interface: FilesCache
        purge the entries corresponding to the filesystem
      • removeFile

        public void removeFile​(FileSystem filesystem,
                               FileName name)
        Description copied from interface: FilesCache
        removes a file from cache
        Parameters:
        filesystem - filesystem
        name - filename
      • touchFile

        public void touchFile​(FileObject file)