|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindmatters.faces.spring.context.FacesWebApplicationContextUtils
public final class FacesWebApplicationContextUtils
Convenience methods to retrieve the faces root FacesWebApplicationContext for
a given FacesContext
. This is e.g. useful for
accessing a faces-spring context from within custom components.
FacesWebApplicationContext
Method Summary | |
---|---|
static FacesWebApplicationContext |
getRequiredWebApplicationContext(FacesContext context)
Finds the required faces root FacesWebApplicationContext for this web app, which is typically loaded via ContextLoaderListenr. |
static FacesWebApplicationContext |
getWebApplicationContext(FacesContext context)
Finds the faces root FacesWebApplicationContext for this web app, which is typically loaded via ContextLoaderListener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FacesWebApplicationContext getWebApplicationContext(FacesContext context)
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
context
- FacesContext to find the web application context for
FacesWebApplicationContext.ROOT_FACES_WEB_APPLICATION_CONTEXT_ATTRIBUTE
public static FacesWebApplicationContext getRequiredWebApplicationContext(FacesContext context)
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
context
- FacesContext to find the web application context for
java.lang.IllegalStateException
- if the root FacesWebApplicationContext could not be foundFacesWebApplicationContext.ROOT_FACES_WEB_APPLICATION_CONTEXT_ATTRIBUTE
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |