Hardcoded default providers for asynchronous channel and file system

Alan Bateman Alan.Bateman at oracle.com
Tue Nov 15 11:44:05 PST 2011


On 15/11/2011 11:20, Jonathan Lu wrote:
>
> But why is the Class.forName() style applied only for 
> DefaultFileSystemProvider, not for all the default providers? if not 
> particular reason, what about just change both 
> DefaultAsynchronousChannelProvider and DefaultSelectorProvider to 
> follow this style ?
All three could use reflection and that would address the static 
dependency issue, but it wouldn't address the portability issue in that 
each of the providers would require to be changed when porting to 
another platform.

-Alan.


More information about the nio-dev mailing list