felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Valchev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2117) Use DynamicImport instead of Optional Packages
Date Tue, 23 Mar 2010 14:05:27 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848717#action_12848717

Valentin Valchev commented on FELIX-2117:

BTW. Isn't it better to make OBR & SCR a separate plugins.

OBR is not into OSGi core spec, and SCR is IMHO rarely used. The benefits of that step will
1. This will solve the resolve problem we have now
2. OBR activator might track OBR service and register the plugin only when it is available
3. SCR might be available only if at least one component is installed

A similar approach is used by UPnP Plugin. It will not be visible in console, unless at least
one UPnP Device is available.

This prevents the user from being confused by opening as example "Components" page, that says
"No components".

> Use DynamicImport instead of Optional Packages
> ----------------------------------------------
>                 Key: FELIX-2117
>                 URL: https://issues.apache.org/jira/browse/FELIX-2117
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>            Reporter: Valentin Valchev
> Currently the web console uses optional packages for some plugins.
> Unfortunately an 'optional' import is wired when the bundle is resolved.
> DynamicImport however is wired when the package is accessed.
> This means, that currently, you 
> - install webconsole
> - install scr
> = scr plugin is not available
> - resolve webconsole (again)
> = scr plugin is available after 1 additional step
> However if DynamicImport is used, the SCR plugin will become available immediately after
it is being installed.

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

View raw message