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

Konrad Windszus commented on FELIX-6607:
----------------------------------------

Currently internal plugins are no OSGi services and therefore have no service 
id. Defaulting to 0 raises the questions what to make with conflicting external 
ones having the default ranking of 0. IMHO there should not be a tie here, 
therefore I would propose to always register with the lowest ranking. Register 
external ones with a deliberate lower ranking than the internal ones is IMHO 
useless.

> Web Console Plugins should have a predictable order in case of label conflicts
> ------------------------------------------------------------------------------
>
>                 Key: FELIX-6607
>                 URL: https://issues.apache.org/jira/browse/FELIX-6607
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>            Reporter: Konrad Windszus
>            Priority: Major
>
> In case two web console plugins register for the same label it is currently 
> not predictable which is getting used (because the service being started 
> later overwrites earlier ones with the same label). The regular 
> ServiceReference.compareTo(…) semantics should be used to determine which of 
> the conflicting plugins should win.
> Internal plugins which do not rely on OSGi services (and therefore don't have 
> a servicereference) should have the highest priority (i.e. should not be 
> allowed to be overwritten).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to