|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.context.ExternalContextHolder
public final class ExternalContextHolder
Simple holder class that associates an ExternalContext
instance with the current thread. The ExternalContext
will not be inherited by any child threads spawned by the current thread.
Used as a central holder for the current ExternalContext in Spring Web Flow, wherever necessary. Often used by artifacts needing access to the current application session.
ExternalContext
Method Summary | |
---|---|
static ExternalContext |
getExternalContext()
Return the ExternalContext associated with the current thread, if any. |
static void |
setExternalContext(ExternalContext externalContext)
Associate the given ExternalContext with the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setExternalContext(ExternalContext externalContext)
externalContext
- the current ExternalContext, or null
to reset the thread-bound contextpublic static ExternalContext getExternalContext()
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |