[webbeans-commits] Webbeans SVN: r364 - ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Nov 26 07:47:44 EST 2008
Author: nickarls
Date: 2008-11-26 07:47:44 -0500 (Wed, 26 Nov 2008)
New Revision: 364
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/WebBeansFilter.java
Log:
minor: don't handle contexts directly
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/WebBeansFilter.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/WebBeansFilter.java 2008-11-26 07:10:49 UTC (rev 363)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/WebBeansFilter.java 2008-11-26 12:47:44 UTC (rev 364)
@@ -8,45 +8,34 @@
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
-import javax.webbeans.manager.Manager;
+import javax.servlet.http.HttpServletRequest;
-import org.jboss.webbeans.contexts.AbstractContext;
-import org.jboss.webbeans.contexts.RequestContext;
-
-
/**
*
* @author Shane Bryzak
- *
+ *
*/
public class WebBeansFilter implements Filter
{
- private Manager container;
-
- public void init(FilterConfig filterConfig) throws ServletException
+ public void init(FilterConfig filterConfig) throws ServletException
{
-
+
}
- public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
- throws IOException, ServletException
+ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
{
- AbstractContext requestContext = new RequestContext();
-
try
{
- container.addContext(requestContext);
-
+ ServletLifecycle.beginRequest((HttpServletRequest) request);
chain.doFilter(request, response);
}
finally
{
- requestContext.destroy(container);
- }
+ ServletLifecycle.endRequest((HttpServletRequest) request);
+ }
}
- public void destroy()
+ public void destroy()
{
-
}
}
More information about the weld-commits
mailing list