public class ApplicationListeners extends Object implements Lifecycle
This class does not perform any context setup, the context must be setup before invoking this class.
Note that arrays are used instead of lists for performance reasons.
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationListeners.ListenerState |
Constructor and Description |
---|
ApplicationListeners(List<ManagedListener> allListeners,
ServletContext servletContext) |
public ApplicationListeners(List<ManagedListener> allListeners, ServletContext servletContext)
public void addListener(ManagedListener listener)
public void start() throws ServletException
start
in interface Lifecycle
ServletException
public void contextInitialized()
public void contextDestroyed()
public void servletContextAttributeRemoved(String name, Object value)
public void servletContextAttributeReplaced(String name, Object value)
public void requestInitialized(ServletRequest request)
public void requestDestroyed(ServletRequest request)
public void servletRequestAttributeAdded(HttpServletRequest request, String name, Object value)
public void servletRequestAttributeRemoved(HttpServletRequest request, String name, Object value)
public void servletRequestAttributeReplaced(HttpServletRequest request, String name, Object value)
public void sessionCreated(HttpSession session)
public void sessionDestroyed(HttpSession session)
public void httpSessionAttributeAdded(HttpSession session, String name, Object value)
public void httpSessionAttributeRemoved(HttpSession session, String name, Object value)
public void httpSessionAttributeReplaced(HttpSession session, String name, Object value)
public void httpSessionIdChanged(HttpSession session, String oldSessionId)
public static ApplicationListeners.ListenerState listenerState()
public static boolean isListenerClass(Class<?> clazz)
clazz
- The potential listener classCopyright © 2017 JBoss by Red Hat. All rights reserved.