users@jersey.java.net

sideline caching via _at_Provider?

From: Bill de hOra <bill_at_dehora.net>
Date: Thu, 19 Feb 2009 21:59:52 +0000

Hi,

I introduced a sideline cache (memcached) recently into some Jersey code
backed by Spring. To avoid polluting the resource controller with
if-in-cache checks, I used Spring AOP's @Around aspect to introduce the
caching support.

It occurred to me that a @Provider style approach would be nice for
those not using Spring. So I was wondering if anyone here had done any
caching work using Providers or custom annotations?

Bill