> > > I would like to propose to create a ResourceWrapper class in the Sling
> > > API, which is just a simple wrapper around a delegatee resource
> > > analogous to what we have for servlet requests and responses. This
> > > simplifies the creation of pseudo-resources, for example to create
> > > resource based on another resource but with a different resource type.
> > great.
> >
> > > Second, I propose to move the SyntheticResource class from the
> > > jcr/resource project to the Sling API because this class is by now way
> > > related to a JCR repository. Rather it is very usefull in general
> > > projects.
> > could the synthetic resource be more intelligent? i would be very convenient
> >  if it could adapt to node (if the node at the path exists.)
>
> If you would want to just overwrite the resource type with a synthetic
> resource, I suggest to use a ResourceWrapper overwriting the
> getResourceType() method. Thus you get the resource type you want but
> still get the node underlying the actual resource.
of course :-)

-- 
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Reply via email to