RE: [vfs] why is FileSystemConfigBuilder.setParam() protected?

2009-05-29 Thread Mario Ivankovits
This is one of my least favorite parts of VFS. To configure FileSystemOptions you have to use the appropriate FileSystemConfigBuilder. I can't tell you why it was done this way as it precedes my involvement, but I've considered reinventing this more than once. It isn't pretty. The

Re: [vfs] why is FileSystemConfigBuilder.setParam() protected?

2009-05-29 Thread Benoit Maisonny
For the setParam(String, String) approach VFS provides the DelegatingFileSystemOptionsBuilder which then allows you to use setConfigString/setConfigClass which accepts just strings and uses reflection to coerce it to the required type. This was created to populate the configuration e.g.