RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Daniel Woo [mailto:daniely...@hotmail.com] Envoyé : vendredi 9 janvier 2009 17:26 À : discuss@restlet.tigris.org Objet : *SPAM(1.8)* RE: Re: SpringBeanRouter issues one

RE: Re: SpringBeanRouter issues

2009-01-11 Thread Daniel Woo
one more thing, if you want to intercept MyResource.represent(Variant), that won't work with Spring AOP (jdk proxy or cglib). Because this method is called by Resource.handleGet() You have to intercept Resource.handleGet()/Put()/Post()/Delete(), or use static waver like aspectJ. I think you

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
I think you can make SpringBeanRouter implement ApplicationContextAware. I made it this way, the AOP interceptor successfully executed. I changed very little to your SpringBeanRouter and SpringBeanFinder: SpringBeanRouter: make it ApplicationContextAware, and holds an ApplicationContext. Each