commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: [VFS] VFS.getManager().getFilesCache() - exists() vs findFiles()
Date Thu, 19 May 2005 05:29:59 GMT
manco wrote:
>ok,  I was thinking the cache was some type of Singleton per jvm,
It is a singleton per VFS Manager.
>but it sounds like from
>your answer that it is FileObject specific.
No, then I was not clear enough.

VFS do have 2 "caches".
1) One which holds the fileObjects
2) and a second is the fileObject which caches its own state.

now a resolveFile/findFile utilize the first to return always the same 
instance of a fileObject to any thread.
This allows one to synchronize against this instance.

FileObject.close() reset the states of case#2.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message