felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-38) Improve URL Handlers to work when handler factories are already set
Date Thu, 06 Mar 2008 15:17:01 GMT

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

Karl Pauls resolved FELIX-38.

       Resolution: Fixed
    Fix Version/s:     (was: 1.0.0)

I just commited a solution to this issue as of r634291. 

Basically, it should now be the case that if a factory is already present it is swapped out
and then replaced. When all frameworks are gone the initial factory is swapped in again. Furthermore,
we will still delegate to the initial factory where possible. 

A second thing is that it should now be possible to run more then one framework in more then
one classloader and still have urlhandlers enabled. This involves some reflection pain. 

Finally, frameworks can still disable urlhandlers per instance. If no framework has urlhandlers
enabled the urlhandlers will not be set.

I will mark this issue resolved for now and see whether there are any problems coming in.

> 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: Karl Pauls
>            Priority: Minor
>         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
>     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.

View raw message