You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thomas Watson (JIRA)" <ji...@apache.org> on 2017/05/01 17:48:05 UTC

[jira] [Commented] (FELIX-5458) [R7] Improved ConfigurationPlugin Support

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

Thomas Watson commented on FELIX-5458:
--------------------------------------

This code is broken (cannot compile) now with the release of FELIX-5613 to osgiR7/scr codebase.  The following imports need to be added back to get it to compile:

import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.cm.ManagedService;

I'm going to go ahead and do that while fixing FELIX-5628 in the osgiR7/scr codebase, but it is unclear to me if that will re-introduce FELIX-5613

> [R7] Improved ConfigurationPlugin Support
> -----------------------------------------
>
>                 Key: FELIX-5458
>                 URL: https://issues.apache.org/jira/browse/FELIX-5458
>             Project: Felix
>          Issue Type: Sub-task
>          Components: Declarative Services (SCR)
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: scr-2.1.0
>
>
> The DS spec will be updated to require SCR to obtain the configuration data from the new Configuration.getModifiedProperties method. SCR must already use the component’s BundleContext to obtain the configuration. The use the new getModifiedProperties method, SCR must supply a ServiceReference for a ManagedService or ManagedServiceFactory. So SCR must register the ManagedService or ManageServiceFactory service using the component’s BundleContext so the ServiceReference for that service can be used as the argument for the getModifiedProperties method. SCR should register these services without a service.pid service property if the SCR implementation will obtain the Configuration object through other means such as a method on the ConfigurationAdmin service so that the service is not called by ConfigurationAdmin.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)