|
From: Juergen H. <ju...@in...> - 2005-09-22 22:22:20
|
In general, I would recommend to not proxy such beans with CGLIB in the first place, but rather use JDK proxies instead - clarifying the actually proxied methods through defining an appropriate service interface, hiding the configuration methods from callers... Nevertheless, I've downgraded that log level from warn to info. I guess it's often non-critical methods that are affected, so a flood of warnings is undesirable. There should nevertheless be a clear indication, which info level should be fine for. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of John Lewis Sent: Thursday, September 22, 2005 10:00 PM To: spr...@li... Subject: [Springframework-developer] Cglib2AopProxy warnings from ApplicationObjectSupport Is it necessary for the getApplicationContext and setApplicationContext methods in org.springframework.context.support.ApplicationObjectSupport to be declared as final? As of 1.2.4, we have a number of beans where org.springframework.aop.framework.Cglib2AopProxy complains about not being able to properly proxy these methods. It's not really a problem since these don't need to have transaction management or security applied to them, but it sure is noisy in the log... 2005-09-22 11:11:03,233 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final org.springframework.context.ApplicationContext org.springframework.context.support.ApplicationObjectSupport.getApplicationC ontext() throws java.lang.IllegalStateException] because it is final. All calls to this method via a proxy will be routed directly to the proxy.> 2005-09-22 11:11:03,243 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.springframework.context.support.ApplicationObjectSupport.setApplicationC ontext(org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException] because it is final. All calls to this method via a proxy will be routed directly to the proxy.> John Lewis ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |