bind interceptors to self-provided instances

107 views
Skip to first unread message

Marko Modsching

unread,
Mar 26, 2012, 4:15:31 PM3/26/12
to google-guice
Hi,

is there a way to bind an interceptor to instances that are provided
by a self written provider? In my use-case I have a
HessianClientProxyProvider that instanciates a hessian client-proxy.
But the instance should be wrapped by an interceptor (e.g. a caching-
interceptor).

If this is not possible with "standard" guice - can anybody provide an
alternative? I like to use the same interceptor for both guice-
provided instances and self-provided instances.

Thanks in advance,
Marko

Alen Vrečko

unread,
Mar 28, 2012, 4:27:19 AM3/28/12
to google-guice
Hi,

There are various ways to work around the issue. But you will need to
get your hands a little dirty in any case.

Take a look at 2nd post from http://groups.google.com/group/google-guice/browse_thread/thread/e502571a662d7310.
Feel free to search the mailing list for more. This came up a couple
of times in the past.

Cheers
Alen

On Mar 26, 10:15 pm, Marko Modsching <marko.modsch...@googlemail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages