| 
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mindmatters.faces.spring.context.servlet.LifecycleExecutor
public final class LifecycleExecutor
HandlerAdapter implementation that delegates it's
 work to any given arbitrary HandlerAdapter and integrates it into the
 workflow of the request processing of the underliying JSF implementation.
Lifecycle.execute(FacesContext)| Field Summary | |
|---|---|
protected  org.apache.commons.logging.Log | 
log
For logging.  | 
| Constructor Summary | |
|---|---|
LifecycleExecutor(HandlerAdapter internalHandlerAdapter)
Creates a LifecycleExecutor with the given internal HandlerAdapter internalHandlerAdapter. | 
|
LifecycleExecutor(HandlerAdapter internalHandlerAdapter,
                  java.lang.String lifecycleId)
Creates a LifecycleExecutor with the given internal HandlerAdapter internalHandlerAdapter. | 
|
| Method Summary | |
|---|---|
static java.lang.Object | 
getHandler(FacesContext context)
Returns the current Handler from the current thread.  | 
 long | 
getLastModified(javax.servlet.http.HttpServletRequest request,
                java.lang.Object handler)
Same contract as for HttpServlet's getLastModified method. | 
 ModelAndView | 
handle(javax.servlet.http.HttpServletRequest request,
       javax.servlet.http.HttpServletResponse response,
       java.lang.Object handler)
Use the given handler to handle this request.  | 
 boolean | 
supports(java.lang.Object handler)
Given a handler instance, return whether or not this HandlerAdapter can support it.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail | 
|---|
public LifecycleExecutor(HandlerAdapter internalHandlerAdapter)
HandlerAdapter internalHandlerAdapter.
internalHandlerAdapter - The arbitrary HandlerAdapter which is decorated an integrated
            in the faces lifecycle
public LifecycleExecutor(HandlerAdapter internalHandlerAdapter,
                         java.lang.String lifecycleId)
HandlerAdapter internalHandlerAdapter.
internalHandlerAdapter - The arbitrary HandlerAdapter which is decorated an integrated
            in the faces lifecyclelifecycleId - the lifecycle id for identifying the proper lifecycle this
            adapter will use for integration purposes| Method Detail | 
|---|
public static java.lang.Object getHandler(FacesContext context)
context - FacesContext for the current request
public boolean supports(java.lang.Object handler)
A typical implementation:
 return (handler instanceof MyHandler);
 
supports in interface HandlerAdapterhandler - handler object to check
public long getLastModified(javax.servlet.http.HttpServletRequest request,
                            java.lang.Object handler)
getLastModified method.
 Can simply return -1 if there's no support in the handler class.
getLastModified in interface HandlerAdapterrequest - current HTTP requesthandler - handler to use
HttpServlet.getLastModified(javax.servlet.http.HttpServletRequest), 
LastModified.getLastModified(javax.servlet.http.HttpServletRequest)
public ModelAndView handle(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           java.lang.Object handler)
                    throws java.lang.Exception
handle in interface HandlerAdapterrequest - current HTTP requestresponse - current HTTP responsehandler - handler to use. This object must have previously been passed
 to the supports method of this interface, which must have
 returned true.
null if the request has been handled directly
java.lang.Exception - in case of errors
  | 
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||