Package org.joinfaces
Class FacesContextUtils
java.lang.Object
org.springframework.web.jsf.FacesContextUtils
org.joinfaces.FacesContextUtils
Extension of Springs own
FacesContextUtils
.-
Method Summary
Modifier and TypeMethodDescriptionstatic WebApplicationContext
getRequiredWebApplicationContext
(ExternalContext externalContext) static ServletContext
getServletContext
(ExternalContext externalContext) static WebApplicationContext
getWebApplicationContext
(ExternalContext externalContext) Methods inherited from class org.springframework.web.jsf.FacesContextUtils
getRequiredWebApplicationContext, getSessionMutex, getWebApplicationContext
-
Method Details
-
getServletContext
-
getWebApplicationContext
@Nullable public static WebApplicationContext getWebApplicationContext(ExternalContext externalContext) - Parameters:
externalContext
- The ExternalContext to find the web application context for- Returns:
- the root WebApplicationContext for this web app, or
null
if none - See Also:
-
getRequiredWebApplicationContext
@NonNull public static WebApplicationContext getRequiredWebApplicationContext(ExternalContext externalContext) - Parameters:
externalContext
- The ExternalContext to find the web application context for- Returns:
- the root WebApplicationContext for this web app
- See Also:
-