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 WebApplicationContextgetRequiredWebApplicationContext(ExternalContext externalContext) static ServletContextgetServletContext(ExternalContext externalContext) static WebApplicationContextgetWebApplicationContext(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
nullif 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:
-