org.apache.myfaces.extensions.cdi.jsf.impl.util
Class RequestCache

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.util.RequestCache

@Typed
public class RequestCache
extends Object

Caches information for a request


Constructor Summary
protected RequestCache()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestCache

protected RequestCache()
Method Detail

resetCache

public static void resetCache()
Resets all caches


resetConversationCache

public static void resetConversationCache()
Resets conversation caches only


getWindowContextManager

public static WindowContextManager getWindowContextManager()
Exposes the cached WindowContextManager. If there isn't a cached instance a new one will be created.

Returns:
current window-context-manager

getBeanEntryFactory

public static BeanEntryFactory getBeanEntryFactory()
Exposes the cached BeanEntryFactory. If there isn't a cached instance a new one will be created.

Returns:
current bean-entry-factory

getCurrentWindowContext

public static WindowContext getCurrentWindowContext()
Exposes the cached WindowContext

Returns:
cached window-context or null if there is no instance

setCurrentWindowContext

public static void setCurrentWindowContext(WindowContext windowContext)
Caches the current WindowContext

Parameters:
windowContext - current window-context

getConversation

public static EditableConversation getConversation(ConversationKey conversationKey)
Exposes the cached Conversation for the given ConversationKey

Parameters:
conversationKey - current conversation-key
Returns:
cached conversation for the given key or null if there is no conversation with the given key

setConversation

public static void setConversation(ConversationKey conversationKey,
                                   EditableConversation conversation)
Caches the given Conversation

Parameters:
conversationKey - key of the conversation
conversation - current conversation


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.