Vincent Massol wrote:
> Hi Sergiu,
> 
> Are you sure about this below? What's your use case?
> 
> I find it strange to order by class name for an execution order.
> 

There is no use case, but I think that we should have a deterministic 
rendering process. If we order only by the priority, then I don't know 
in which order will the rendering happen, since most macros have 
priority 1000. Ideally this shouldn't be a problem, but if there's a bug 
somewhere, it will be harder to spot it if the execution order is always 
changing. So, it's not something needed, but something safer. If you 
don't have a counter use case, I'd rather keep it like this.

> 
> On Aug 27, 2008, at 1:59 AM, sdumitriu (SVN) wrote:
> 
>> Author: sdumitriu
>> Date: 2008-08-27 01:59:21 +0200 (Wed, 27 Aug 2008)
>> New Revision: 12079
>>
>> Modified:
>>   platform/core/trunk/xwiki-rendering/src/main/java/org/xwiki/ 
>> rendering/macro/AbstractMacro.java
>>   platform/core/trunk/xwiki-rendering/src/main/java/org/xwiki/ 
>> rendering/transformation/AbstractTransformation.java
>> Log:
>> XWIKI-2568: Continue implementing the new Rendering Architecture
>> Improve the macro and transformation comparer so that component  
>> implementations with the same priority are ordered by the classname.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to