Hi,

On Thu, Jun 11, 2009 at 3:08 PM, Felix Meschberger <fmesc...@gmail.com>wrote:

>
>
> Not sure, whether it really is the best approach. Though it is true,
> that the ResourceResolver instance is created on each request, it is
> still created from the JcrResourceResolverFactory, which might as well
> be the holder of the cache and provide the user-specific subset of the
> cache to the per-request-ResourceResolver.


It sounds a bit strange to have a factory holding a cache.
IMHO caching shouldn't be too hardwired since there are always situations
where the caching as it's implemented doesn't fit the requirements.
I think it would be nice to have a global ResourceResolver cache like you
described which each ResourceResolver can adapt but does not have to
(configurable).

WDYT?

Best regards,
Dominik

Reply via email to