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

Felix Meschberger commented on FELIX-4787:
------------------------------------------

In light of FELIX-4785 where we discuss keeping the old service API I think we 
should not jump the band wagon and just blindly require framework R6.

Just as we have consumers of the old service API we might have implementations 
of the old Framework API which cannot easily migrate to a new framework version 
(in fact migrating the framework is probably harder than migrating just about 
some bundle).

So I suggest we should actually keep compatibility with old framework versions. 
This probably means:

  * not support new functionality if the framework does not support it. For 
ServiceObjects this means that components making use of this functionality fail 
to "resolve" due to a missing dependency.
  * embed parts of the API which we cannot expect on older frameworks -- or not 
expose that functionality at all. For DTO this means either embedding the DTO 
API and exporting/importing it like we do with the Promise API or it means not 
exposing the DTOs if the basic DTO API is not available -- similar to how we 
support Configuration Admin and Metatype depending on whether these APIs and 
services are available.

> DS implementation should be based on R6
> ---------------------------------------
>
>                 Key: FELIX-4787
>                 URL: https://issues.apache.org/jira/browse/FELIX-4787
>             Project: Felix
>          Issue Type: Task
>          Components: Declarative Services (SCR)
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: scr-2.0.0
>
>
> Right now the new DS implementation stills tries to run on older frameworks, 
> the bnd.bnd file claims it works with version 1.4 of the framework api.
> However, the new DS spec includes support for ServiceObjects and DTOs which 
> are part of core R6 (package version 1.8). There is some effort in the code 
> to still run on an older framework if these features are not used, but I'm 
> wondering if this is a good idea and how we ensure that everything is working.
> Now, that we have an official Apache Felix releases that is R6 compliant, I 
> would rather require this as the minimal version.
> [~djencks] WDYT?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to