Glad it worked for you.

And thanks for the explanation.
It's much clearer than my ambiguous one :-)

Regards,
Iwao

2011/2/23 Marcus Kraßmann <m...@syn-online.de>:
> Hi Iwao,
>
> Today I sucessfully tried your way. It took just 10 minutes and works like a 
> charme. Just created a new SpringTestInterceptor with the same code like the 
> original one, but changed calls of SpringHelper to SpringTestHelper. This 
> offers the same inject methods like SpringHelper, but retrieves the 
> ApplicationContext like this:
>
>  ApplicationContext ac = (ApplicationContext) 
> ctx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
>
> All other logic is delegated to SpringHelper. This way, no illegal cast 
> occurs and I can use @Autowired again. Thanks for pointing me to this.
>
> Kind regards,
> Marcus

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to