felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2117) Use DynamicImport instead of Optional Packages
Date Wed, 24 Mar 2010 07:45:27 GMT

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

Felix Meschberger commented on FELIX-2117:

@Sahoo: I have tested this setup (for the OBR bundle) and it works nicely. Point is, that
the service consumer (ServiceTracker's ServiceListener) registers with a service name (not
a service class). Once a service of that name is registered the service registry checks whether
the consumer of the service is checked, whether it has access to the service class. Only at
this time will the DynamicImport-Package be resolved and the API package wired and thus the
service properly delivered to the consumer.

@Valentin: Agreed. But: Do we want to separate these plugins out for the 3.0 release already
? Or should we delay for a next release ?

> 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