org.jboss.seam.servlet.event
Class ServletEventBridgeFilter
java.lang.Object
org.jboss.seam.solder.beanManager.BeanManagerAware
org.jboss.seam.servlet.event.AbstractServletEventBridge
org.jboss.seam.servlet.event.ServletEventBridgeFilter
- All Implemented Interfaces:
- Filter
public class ServletEventBridgeFilter
- extends AbstractServletEventBridge
- implements Filter
Propagates the ServletResponse lifecycle events to the CDI event bus, complementing the ServletEventBridgeListener,
which handles the other lifecycle events.
This filter is auto-registered in Servlet 3.0 environments. If CDI injection is available into filters, the BeanManager will
be accessible to this instance as an injected resource. Otherwise, the BeanManager will be looked up using the BeanManager
provider service.
The internal events are fired to ensure that the setup and tear down routines happen around the main events. The event
strategy is used to jump from a Servlet component which may not be managed by CDI to an observe we know to be a managed bean.
- Author:
- Dan Allen
| Methods inherited from class org.jboss.seam.solder.beanManager.BeanManagerAware |
getBeanManager, getBeanManagerLocator, isBeanManagerAvailable, isBeanManagerInjected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletEventBridgeFilter
public ServletEventBridgeFilter()
init
public void init(FilterConfig config)
throws ServletException
- Specified by:
init in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy in interface Filter
Copyright © 2011 Seam Framework. All Rights Reserved.