[
https://issues.apache.org/jira/browse/CLEREZZA-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007405#comment-13007405
]
Bertrand Delacretaz commented on CLEREZZA-460:
----------------------------------------------
Using bundle startlevel to define service priorities is very unusual, I'd
recommend using the service ranking instead.
Sorting the ServiceReference objects that a ServiceTracker returns is
sufficient to take that value into account, see
http://www.osgi.org/javadoc/r4v42/org/osgi/framework/ServiceReference.html
> Use whiteboard pattern for Renderlets
> -------------------------------------
>
> Key: CLEREZZA-460
> URL: https://issues.apache.org/jira/browse/CLEREZZA-460
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Reto Bachmann-Gmür
> Assignee: Reto Bachmann-Gmür
>
> The current mechanism for renderlets is overly complex. Instead of describing
> renderlets in a graph rendelets should be services that have properties
> indicating the rdf type and the mode-pattern they handle.
> The priority for selecting renderlets should be:
> - type, according to type-priority list
> - length of regex math (the matching regex with the most alphanumeric
> characters wins)
> - startlevel of the bundle providing the service
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira