incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLEREZZA-460) Use whiteboard pattern for Renderlets
Date Wed, 16 Mar 2011 10:30:33 GMT

    [ 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

Mime
View raw message