I have a web.xml which does the following
My LoadImage is something like thisCode:<listener> <listener-class>com.common.LoadImage</listener-class> </listener>
I have an intercepter that logs messages which states the time take to execute the method.Code:public class LoadImage implements ServletContextListener { private ServletContext context = null; public void contextDestroyed(ServletContextEvent event) { } public void contextInitialized(ServletContextEvent event) { //some code } }
How do i proxy all methods in this class.
For my beans in applicationContext.xml i use ProxyFactoryBean and it works fine, but this class is not Injected, hence not sure how to proxy it in applicationContext.xml. I would like to do it in applicationContext.xml as I have one version which is solely for finding perf and other version which is for production.
Thanks


Reply With Quote

