com.sun.faces.util
Class ReflectionUtils.ReflectionUtilsListener
java.lang.Object
com.sun.faces.util.ReflectionUtils.ReflectionUtilsListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
- Enclosing class:
- ReflectionUtils
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.
|
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
|
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtils.ReflectionUtilsListener
public ReflectionUtils.ReflectionUtilsListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.