PDA

View Full Version : Does ProxyFactoryObject supports null target ?


lvcha
08-30-2006, 02:30 AM
I want to use aop to enclose remote call. So actually I have no target, the Advisor do the remotecal..


ProxyFactoryObject proxyobj = new ProxyFactoryObject();
RemoteCallAdvisor advicer = new RemoteCallAdvisor();
advicer.Advice = new RemoteCallAdvice();
proxyobj.AddAdvisor(advicer);
proxyobj.AddInterface(typeof(IHelloWorld));
proxyobj.GetObject();

but the proxyobj.GetObject(); throw an argumentexception at
"InterfaceMapping mapping = targetType.GetInterfaceMap(intf);"

I try the same code in spring of java,it work well.
any suggestion?

thanks a lot!!

Bruno Baia
08-30-2006, 10:09 AM
Hi,

This is a known bug that has been resolved and will be included in the next version (1.0.3) :
http://forum.springframework.net/showthread.php?t=375

If you want to make it work you need to download one of the latest nightly build (http://www.springframework.net/downloads/nightly/).

-Bruno