incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür (JIRA) <j...@apache.org>
Subject [jira] Commented: (CLEREZZA-460) Use whiteboard pattern for Renderlets
Date Wed, 16 Mar 2011 13:43:29 GMT

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

Reto Bachmann-Gmür commented on CLEREZZA-460:
---------------------------------------------

The idea behind using the bundle-startlevel is for consistency with static resources. A Style
bundle with a higher startlevel will overwrite resources /and/ renderlets with the same mode
pattern and type.

As style bundles may not define styles for every resource one might want to load multiple
style bundles on an instance. For example might one load the style "pink-world"  which defines
templates for many resources making them look pink and "funny-persons" which provides templates
for persons making them look more funny, if the latter has a lower startlevel persons look
pink otherise funny. In general I thinkyou want to set the priority on the style-bundle-level
and not on individual renderlets.

> 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