@Typed public class RequestCache extends Object
Modifier | Constructor and Description |
---|---|
protected |
RequestCache() |
Modifier and Type | Method and Description |
---|---|
static BeanEntryFactory |
getBeanEntryFactory()
Exposes the cached
BeanEntryFactory . |
static EditableConversation |
getConversation(ConversationKey conversationKey)
Exposes the cached
Conversation
for the given ConversationKey |
static WindowContext |
getCurrentWindowContext()
Exposes the cached
WindowContext |
static WindowContextManager |
getWindowContextManager()
Exposes the cached
WindowContextManager . |
static void |
resetCache()
Resets all caches
|
static void |
resetConversationCache()
Resets conversation caches only
|
static void |
setConversation(ConversationKey conversationKey,
EditableConversation conversation)
Caches the given
Conversation |
static void |
setCurrentWindowContext(WindowContext windowContext)
Caches the current
WindowContext |
public static void resetCache()
public static void resetConversationCache()
public static WindowContextManager getWindowContextManager()
WindowContextManager
. If there isn't a cached instance a new one will be created.public static BeanEntryFactory getBeanEntryFactory()
BeanEntryFactory
. If there isn't a cached instance a new one will be created.public static WindowContext getCurrentWindowContext()
WindowContext
public static void setCurrentWindowContext(WindowContext windowContext)
WindowContext
windowContext
- current window-contextpublic static EditableConversation getConversation(ConversationKey conversationKey)
Conversation
for the given ConversationKey
conversationKey
- current conversation-keypublic static void setConversation(ConversationKey conversationKey, EditableConversation conversation)
Conversation
conversationKey
- key of the conversationconversation
- current conversationCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.