Hi,

Am Donnerstag, den 20.12.2007, 11:57 +0100 schrieb Philipp Koch:
> i would nevertheless propose to drop the  ScriptableNode impl because
> the sling resource also provides a default mapping which does
> basically what the ScriptableNode impl does. this mapped object can be
> retrieved by calling request.getResource().adaptTo(Object.class).
> 
> what do others think?

+1 

We could even go a step further an implement support for adapting to a
Map, which just contains the properties of the resource's node. The
child nodes need not be in the Map because you can access the child
nodes as child resources through the ResourceResolver.listChildren
method.

Regards
Felix

Reply via email to