[jboss-jira] [JBoss JIRA] Reopened: (JBAS-8829) Expose org.jboss.net.protocol.URLStreamHandlerFactory as a service provider for java.net.URLStreamHandlerFactory
Jason Greene (JIRA)
jira-events at lists.jboss.org
Thu Apr 21 14:27:08 EDT 2011
[ https://issues.jboss.org/browse/JBAS-8829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene reopened JBAS-8829:
--------------------------------
Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all unscheduled AS6 issues that are a year or less old. This will make it easier community members to find and work on them.
Future releases beyond 6.1 can be done provided a community member steps up to coordinate them.
> 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: Legacy JBoss Application Server 6
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Krzysztof Maslak
> Assignee: Thomas Diesler
> Fix For: No Release
>
>
> 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