org.apache.myfaces.trinidad.context
Class WindowManagerFactory

java.lang.Object
  extended by org.apache.myfaces.trinidad.context.WindowManagerFactory

public abstract class WindowManagerFactory
extends Object

Application-scoped factory for creating per-Session WindowManager instances. It is the WindowManagerFactory implementation's responsibility to ensure that only one WindowManager instance is created per-session. The WindowManagerFactory is also responsible for ensuring that any mutable state in the WindowManager instances will be successfully failed over.

The factory is usually specified by placing the name of the WindowManagerFactory implementation class in a file named org.apache.myfaces.trinidad.context.WindowManagerFactory in the META-INF/services directory

See Also:
WindowManager, RequestContext.getWindowManager()

Constructor Summary
WindowManagerFactory()
           
 
Method Summary
abstract  WindowManager getWindowManager(javax.faces.context.ExternalContext extContext)
          Returns the WindowManager to use for this session, creating a new instance if one doesn't already exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowManagerFactory

public WindowManagerFactory()
Method Detail

getWindowManager

public abstract WindowManager getWindowManager(javax.faces.context.ExternalContext extContext)
Returns the WindowManager to use for this session, creating a new instance if one doesn't already exist.

Parameters:
extContext - ExternalContext
Returns:
WindowManager to use for this Session


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