tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Tsai <Jun.T...@gmail.com>
Subject Re: @InjectObject spring beans proxyed with Spring-AOP problem.
Date Fri, 02 Sep 2005 06:48:14 GMT
Jun Tsai wrote:
> I find if I use
> 
> @InjectObject("spring:testService")
> public abstract ITestService getTestService();
> 
> It throws a java.lang.IllegalArgumentException:
>     argument type mismatch.
> 
> 
> If I use
> @InjectObject("spring:testService")
> public abstract Object getTestService();
> 


ITestService testService=(ITestService)getTestService();

The code throws java.lang.ClassCastException.I debug this.I find the 
class is TestService$$EnhanceByCGLIB$$b324af4b.



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message