org.jboss.webbeans.servlet
Class ServletLifecycle

java.lang.Object
  extended by org.jboss.webbeans.servlet.ServletLifecycle

public class ServletLifecycle
extends java.lang.Object

Reacts to phases of the servlet life cycles

Author:
Pete Muir, Nicklas Karlsson

Constructor Summary
ServletLifecycle()
           
 
Method Summary
static void beginApplication(javax.servlet.ServletContext context)
          Starts the application Runs the bootstrapper for bean discover and initialization
static void beginRequest(javax.servlet.http.HttpServletRequest request)
          Begins a HTTP request Sets the session into the session context
static void beginSession(javax.servlet.http.HttpSession session)
          Begins a session
static void endApplication()
          Ends the application
static void endRequest(javax.servlet.http.HttpServletRequest request)
          Ends a HTTP request
static void endSession(javax.servlet.http.HttpSession session)
          Ends a session
static javax.servlet.ServletContext getServletContext()
          Gets the servlet context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletLifecycle

public ServletLifecycle()
Method Detail

beginApplication

public static void beginApplication(javax.servlet.ServletContext context)
Starts the application Runs the bootstrapper for bean discover and initialization

Parameters:
context - The servlet context

endApplication

public static void endApplication()
Ends the application


beginSession

public static void beginSession(javax.servlet.http.HttpSession session)
Begins a session

Parameters:
session - The HTTP session

endSession

public static void endSession(javax.servlet.http.HttpSession session)
Ends a session

Parameters:
session - The HTTP session

beginRequest

public static void beginRequest(javax.servlet.http.HttpServletRequest request)
Begins a HTTP request Sets the session into the session context

Parameters:
request - The request

endRequest

public static void endRequest(javax.servlet.http.HttpServletRequest request)
Ends a HTTP request

Parameters:
request - The request

getServletContext

public static javax.servlet.ServletContext getServletContext()
Gets the servlet context

Returns:
The servlet context


Copyright © 2008. All Rights Reserved.