commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ima...@apache.org>
Subject Re: [vfs] VfsTask
Date Mon, 21 Jun 2004 14:33:12 GMT
Rami Ojares wrote:

>What happens if FileSystemManager is not closed and JVM exits.
>  
>
Nothing special - there is no cleanup handling on jvm exit.

>In other words what does close method do?
>  
>
close() on the manager release all used resources resolved/used by this 
manager instance

>And is it a problem if there are many FileSystemManagers?
>This can happen when instantiating outside of VFS class.
>  
>
This is no problem. Beside the fact that
manager1.resolveFile("abc.txt")
returns not the same instance as
manager2.resolveFile("abc.txt").

>Can there be any problems if Ant task uses one manager instance and
>some other class that ant task uses, uses some other manager instance?
>  
>
No technical problems.
However, maybe the <vfs-manager could be a clean solution and let the 
door to the various instantiation mechanism open?

-- 
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message