Hi!

I think the javassist ProxyFactory is simply not made for us.
From the JavaDoc:

> setHandler
>
> public void setHandler(MethodHandler mi)
>    Sets the default invocation handler. This invocation handler is shared 
> among all the instances of a proxy class unless another is explicitly 
> specified. 

Which means that we cannot store _anything_ in a javassist ProxyHandler :(

What I remember from java.lang.reflec.ProxyHandler is that this is possible.
That's what I also find backed in the JavaDoc:

> Each proxy instance has an associated invocation handler. When a method
> is invoked on a proxy instance, the method invocation is encoded and
> dispatched to the invoke  method of its invocation handler. 
 
LieGrue,
strub

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com

Reply via email to