[jboss-dev-forums] [Design the new POJO MicroContainer] - Missing VirtualFile::isFile?

alesj do-not-reply at jboss.com
Sat Jan 31 06:23:19 EST 2009


What was the reason again the we don't have VirtualFile::isFile method?

OK, VirtualFile::isLeaf makes complete sense,
as you would like to diff jars vs. plain files.

But having VirtualFile::isFile would be useful.
My use case would be 'hasBeenModified' / hot deployment,
where in the case of (isFile == true) I wouldn't go into 
the file even though it would be 'isLeaf == false' (the file is a jar).

Or is true/false isFile too narrow for other types of VirtualFileHandler.
e.g. Memort, Assembled, ...
And would getType make a better fit?
e.g. FILE, DIRECTORY, NONE, ...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206047#4206047

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206047



More information about the jboss-dev-forums mailing list