commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Enyedi <>
Subject Re: [vfs] File system creation documentation/tutorial
Date Mon, 14 Nov 2005 09:31:28 GMT
Hi Mario,

Thanks for you prompt reply. I will try to apply your guidance on what I
already wrote and I'll let you know if I have any other questions.

As I can see it VFS's usefulness and popularity can be increased in two
ways: API extensions (harder; limited developer resources available) and
more plugins (easier; can be done by third parties). To get third parties
develop new plugins the plugin creation process should be well documented.
At least a guide and a simple tutorial.

Would you be interested in some contributions in this area from the
JCommander project members? Right now we (myself and probably Marius) could
start a document and a tutorial on VFS plugin development. It would even
make sense to have an Eclipse wizard for creating VFS plugins.

What do you think?


On 11/14/05, Mario Ivankovits <> wrote:
> Hi Robert!
> >I recently needed to create a VFS file system implementation for the
> >JCommander project. I managed to get something working but it is far from
> a
> >complete implementation. I looked for some documentation on how to do
> this
> >but I couldn't find any.
> >
> No documentation available for now.
> In short its:
> *) Create a FileProvider derived from AbstractOriginatingFileProvider
> **) set the capabilities
> **) create a filename parser (derive from URLFileNameParser if its url
> based) and setup it in your fileProvider constructor
> **) override doCreateFileSystem
> *) Create a FileSystem derived from AbstractFileSystem
> **) override createFile
> **) if you need to handle a connection this is the right place to do
> (see o.a.c.v.p.sftp)
> **) implement doCloseCommunicationLink() to close such connections of
> free resources
> *) Create a FileObject derived from AbstractFileObject
> **) override the do* methods as needed
> **) doAttach is meant to attach the object to the resource
> **) doDetach is the opposite
> *) If you have to deal with options create a config builder derived from
> FileSystemConfigBuilder
> **) see SftpFileSystemConfigBuilder as example
> **) its idea is to provide a type safe view of the configuration
> **) a DelegatingFileSystemOptionsBuilder exists to convert a
> string-key/string-value pair to the correct datatypes if you have to
> process a configuration file or so - see its javadoc for details please
> I know, this is a very brief (and maybe useless, though I hope not)
> documentation, but if you take the providers for SFTP and SMB as
> template you might see its not that complicated.
> ---
> Mario
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message