[jboss-dev-forums] [Design of POJO Server] - Re: VFS issues

adrian@jboss.org do-not-reply at jboss.com
Fri Sep 8 10:53:08 EDT 2006


The AbstractVirtualFileHandler does have the reference,
it is just via a virtual method: getRootURL();

The idea is that we might want to support virtual files
that are not directly URL based, but do provide a unique identifier.

In fact, the api should really be URI based to make this a real possibility.
With only those handlers that are based on a real URL having
a URI that can be used to recreate the URL.

In anycase, don't you have a problem that each deserialized
virtual file handler will end up in its own copy of the context?
That is unless the locator holds some kind of a map of rootURL -> context.

Also, I think you should make VirtualFileHandler implement Serializable
as a part of the intended contract rather doing it on each implementation.

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

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



More information about the jboss-dev-forums mailing list