|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindmatters.faces.spring.config.ConfigWebApplicationContextUtils
Convenience methods to retrieve the jsf-spring-config root
ConfigWebApplicationContext for a given ServletContext
or FacesContext
. This is e.g. useful for
accessing a faces-spring context from within custom components.
ConfigWebApplicationContext
Method Summary | |
static ConfigWebApplicationContext |
getRequiredWebApplicationContext(FacesContext context)
Find the required jsf-spring-config root ConfigWebApplicationContext for this web app, which is typically loaded via ContextLoaderListener. |
static ConfigWebApplicationContext |
getRequiredWebApplicationContext(javax.servlet.ServletContext context)
Find the required jsf-spring-config root ConfigWebApplicationContext for this web app, which is typically loaded via ContextLoaderListener. |
static ConfigWebApplicationContext |
getWebApplicationContext(FacesContext context)
Find the jsf-spring-config root ConfigWebApplicationContext for this web app, which is typically loaded via ConfigLoaderListener. |
static ConfigWebApplicationContext |
getWebApplicationContext(javax.servlet.ServletContext context)
Find the jsf-spring-config root ConfigWebApplicationContext for this web app, which is typically loaded via ConfigLoaderListener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ConfigWebApplicationContext 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
#ROOT_CONFIG_WEB_APPLICATION_CONTEXT_ATTRIBUTE
public static ConfigWebApplicationContext getWebApplicationContext(javax.servlet.ServletContext context)
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
context
- ServletContext to find the web application context for
#ROOT_CONFIG_WEB_APPLICATION_CONTEXT_ATTRIBUTE
public static ConfigWebApplicationContext 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 jsf-spring-config ConfigWebApplicationContext
could not be found#ROOT_CONFIG_WEB_APPLICATION_CONTEXT_ATTRIBUTE
public static ConfigWebApplicationContext getRequiredWebApplicationContext(javax.servlet.ServletContext context)
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
context
- ServletContext to find the web application context for
java.lang.IllegalStateException
- if the jsf-spring-config ConfigWebApplicationContext
could not be found#ROOT_CONFIG_WEB_APPLICATION_CONTEXT_ATTRIBUTE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |