public static class ReflectionUtils.ReflectionUtilsListener
extends java.lang.Object
implements javax.servlet.ServletContextListener
A SerlvetContextListener
to ensure that the ReflectionUtils
cache is intialized and cleanup when the application starts and finishes.
Since the Servlet spec guarantees a single thread during initialization, doing the cache init and clearing here eliminates the need to have synchronization code in the loopup methods in order to init the caches properly.
Constructor and Description |
---|
ReflectionUtils.ReflectionUtilsListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
public ReflectionUtils.ReflectionUtilsListener()
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.