org.jboss.jsfunit.framework
Class FacesContextBridge

java.lang.Object
  extended by org.jboss.jsfunit.framework.FacesContextBridge

public class FacesContextBridge
extends Object

This class pulls the FacesContext from the previous request and associates it with the JSFUnit thread.

Since:
1.0
Author:
Stan Silvert

Method Summary
static javax.faces.context.FacesContext getCurrentInstance()
          Get the FacesContext from the previous request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentInstance

public static javax.faces.context.FacesContext getCurrentInstance()
Get the FacesContext from the previous request. The FacesContext is a per-request object. So, this must be called after each faces request to get the latest copy.

Returns:
The FacesContext from the previous request, or null if no FacesContext has been created.


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.