Am 12.01.15 um 10:44 schrieb Felix Meschberger:
> Hi all
> 
> Carsten started to review the Sightly Engine API in SLING-4275 [1]. Since 
> this issue covers 4 topics, I think it would be best to quickly discuss these 
> topic in separate threads.
> 
> #4 RenderContext Object Traversal
> 
> The Sightly Engine provides functionality for extensions to transparently 
> travers object hierarchies to implement Sightly Expressions.
> 
> The methods to do so are currently exposed in the RenderContext object which 
> is created for each evaluation of a Sightly Template/Script.
> 
> Question is whether we should expose this traversal functionality as a 
> service. As such this traversal would be „globally applicable“ and could not 
> be adapted to each call. Also extensions would have another reference to a 
> service.
> 

We also have the option to make an utility class out of it. I think this
stuff has general purpose and the RenderContext class itself is not
really the right place for it.

The least we should do is move this to a separate interface and have a
getXYZ method in the RenderContext to avoid bloating of that
RenderContext interface with utility stuff.

Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to