Hi,

Am Montag, den 10.12.2007, 12:28 +0100 schrieb Carsten Ziegeler:
> > In the Sling jcr/resource implementation we will have this mapping
> > support and we may introduce such a helper for example as a request
> > attribute or on-demand through a factory method of the
> > JcrResourceManagerFactoryImpl (to be renamed of course to
> > JcrResourceResolverFactoryImpl) as
> > 
> >     ObjectMapper getObjectMapper(Session session);
> > 
> > microsling has no object mapping and thus no such feature.
> > 
> > WDYT ?
> >
> Hmm, yes makes sense - would it be possible to make the ObjectMapper
> available through the ServiceLocator? I think that's a little bit more
> convenient than storing it into an request attribute.

I agree regarding the request attribute (therefore I prefer the new
JcrResourceManagerFactory method). We cannot register the ObjectMapper
as a service because it will most certainly be linked to a Session,
which is available per session.

(The JcrResourceManagerFactory [or JcrResourceResolverFactory] is
available as a service).

Regards
Felix

Reply via email to