org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class WindowContextManagerObserver
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.WindowContextManagerObserver
@ApplicationScoped
public class WindowContextManagerObserver
- extends Object
Observe some JSF phase events and set the appropriate
states in the EditableWindowContextManager.
We also use it to cleanup unused or obsolete
WindowContexts if needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_REDIRCT_PERFORMED_KEY
public static final String INITIAL_REDIRCT_PERFORMED_KEY
WindowContextManagerObserver
public WindowContextManagerObserver()
tryToRestoreWindowContext
protected void tryToRestoreWindowContext(@Observes@BeforePhase(value=RESTORE_VIEW)
javax.faces.event.PhaseEvent phaseEvent,
EditableWindowContextManager windowContextManager,
WindowHandler windowHandler,
WindowContextConfig windowContextConfig)
- tries to restore the window-id and the window-context as early as possible
- Parameters:
phaseEvent
- the current jsf phase-eventwindowContextManager
- the current window-context-managerwindowHandler
- current window-handlerwindowContextConfig
- the active window-context-config
cleanup
protected void cleanup(@Observes@AfterPhase(value=RESTORE_VIEW)
javax.faces.event.PhaseEvent phaseEvent,
RequestTypeResolver requestTypeResolver,
EditableWindowContextManager windowContextManager,
WindowContextConfig windowContextConfig,
JsfModuleConfig jsfModuleConfig)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.