[jboss-jira] [JBoss JIRA] Assigned: (JBAS-8829) Expose org.jboss.net.protocol.URLStreamHandlerFactory as a service provider for java.net.URLStreamHandlerFactory
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Mon Jan 24 04:00:50 EST 2011
[ https://issues.jboss.org/browse/JBAS-8829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler reassigned JBAS-8829:
------------------------------------
Assignee: Thomas Diesler
> Expose org.jboss.net.protocol.URLStreamHandlerFactory as a service provider for java.net.URLStreamHandlerFactory
> ----------------------------------------------------------------------------------------------------------------
>
> Key: JBAS-8829
> URL: https://issues.jboss.org/browse/JBAS-8829
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Krzysztof Maslak
> Assignee: Thomas Diesler
>
> In JBoss AS7 each module uses ModularURLStreamHandlerFactory as the implementation for URLStreamHandlerFactory, which actually goes through the set of modules ( provided using jboss.protocol.handler.modules system property ) and locates all URLStreamHandlerFactory providers for the given module ( that are used to create URLStreamHandler ).
> org.jboss.net.protocol.URLStreamHandlerFactory is a service provider for java.net.URLStreamHandlerFactory, it is shipped with org.jboss.commons-core.jar, but I haven't seen it registered nowhere as a service provider.
> org.jboss.commons-core.jar is a part of org.jboss.common-core module in AS7.
> Having there this service provider we will be able to pass the moduleId ( org.jboss.common-core ) as part of system property jboss.protocol.handler.modules, then ModularURLStreamHandlerFactory will do a lookup in our org.jboss.common-core module and try to find URLStreamHandler for the given protocol using default java mechanism.
> At the moment AS7 is configured to handle protocols through VFSStreamHandlerFactory which delegates this to jboss-vfs, in case of unknown protocol it fails, instead it should also check protocol against build in java mechanism.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list