[ 
https://issues.apache.org/jira/browse/FELIX-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504409
 ] 

Richard S. Hall commented on FELIX-38:
--------------------------------------

Yes, you are in the correct place.

Although we are planning to deal with this issue in a fashion similar to 
Equinox (i.e., replace the factory using reflection if it is already set), we 
have not yet finalized this.

The only work around for the time being is to turn of the URL Handlers service 
by adding the following property to the conf/config.properties file (or passing 
it into the Felix.start() method):

    framework.service.urlhandlers=false



> Improve URL Handlers to work when handler factories are already set
> -------------------------------------------------------------------
>
>                 Key: FELIX-38
>                 URL: https://issues.apache.org/jira/browse/FELIX-38
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 0.8.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: 1.0.0
>
>         Attachments: FELIX-38.diff.gz
>
>
> The current implementation of URL Handlers expects to be able to set the 
> stream and content handler factories, which can only be set once per JVM. It 
> is possible that a framework instance might not be able to set these 
> factories if it is embedded inside of another application that has already 
> set them. It might be worthwhile to implement a workaround like the one 
> described here:
>     https://bugs.eclipse.org/bugs/show_bug.cgi?id=107909
> In short, it uses reflection to push the framework's factory handlers into 
> the runtime if they are already set and then delegates to them.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to