[jboss-user] [EJB 3.0 Development] New message: "Re: Proxy SPI"

jaikiran pai do-not-reply at jboss.com
Mon Feb 15 13:11:32 EST 2010


User development,

A new message was posted in the thread "Proxy SPI":

http://community.jboss.org/message/526440#526440

Author  : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran

Message:
--------------------------------------------------------------
> mailto:david.lloyd at jboss.com wrote:
> For Javassist proxies, won't you need to specify a base class as well?  
> 
Yes. The proposed SPI takes the "interfaces" param, which actually isn't really interfaces. It's the array of types to which the resultant proxy can be cast to. So that would accomodate the base class.
 
> mailto:david.lloyd at jboss.com wrote:
>  
> You could, in fact, have a single factory which returns a java.lang.reflect.Proxy if the base class is Object or Proxy, or a javassist proxy otherwise, could you not?
 
That could be done too. But any new proxyfactory implementations (cglib?) would then have to be accomodated into that single implementation.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526440#526440




More information about the jboss-user mailing list