org.apache.myfaces.custom.scope
Class ScopeHolder

java.lang.Object
  extended by org.apache.myfaces.custom.scope.ScopeHolder
All Implemented Interfaces:
java.io.Serializable

public class ScopeHolder
extends java.lang.Object
implements java.io.Serializable

A central sessions holder, which stores the triggered scopes and also does the scope synching at the end

Author:
Werner Punz werpu@gmx.at
See Also:
Serialized Form

Constructor Summary
ScopeHolder()
           
 
Method Summary
 void pageRefresh()
          the rendering is done we need to dump the unused scopes
 void resetScope(java.lang.String key)
           
 void resetScopes()
           
 java.lang.Object restoreScopeEntry(java.lang.String key)
          fetches an old scope from the scope map
 void saveScopeEntry(javax.faces.component.UIComponent parent, javax.faces.context.FacesContext context, javax.faces.el.ValueBinding scopeBindingValue)
          note we use the global session internally not the portlet one, if you use portlets please-keep that in mind with your scope names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeHolder

public ScopeHolder()
Method Detail

restoreScopeEntry

public java.lang.Object restoreScopeEntry(java.lang.String key)
fetches an old scope from the scope map

Parameters:
key -
Returns:
Object old scope

saveScopeEntry

public void saveScopeEntry(javax.faces.component.UIComponent parent,
                           javax.faces.context.FacesContext context,
                           javax.faces.el.ValueBinding scopeBindingValue)
note we use the global session internally not the portlet one, if you use portlets please-keep that in mind with your scope names

Parameters:
parent - the parent component
context - the current faces context
scopeBindingValue - the scope value binding

pageRefresh

public void pageRefresh()
the rendering is done we need to dump the unused scopes


resetScopes

public void resetScopes()

resetScope

public void resetScope(java.lang.String key)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.