Package org.apache.myfaces.view
Class ViewScopeProxyMap
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<String,Object>
- 
- org.apache.myfaces.view.ViewScopeProxyMap
 
 
 
- 
- All Implemented Interfaces:
- StateHolder,- Serializable,- Cloneable,- Map<String,Object>
 
 public class ViewScopeProxyMap extends HashMap<String,Object> implements StateHolder This wrapper has these objectives: - Isolate the part that needs to be saved with the view (viewScopeId) from the part that should remain into session (bean map). This class will be serialized when UIViewRoot.saveState() is called. - Decouple the way how the view scope map is stored. For example, in CDI view scope a session scope bean is used, and in default view scope the same session map is used but using a prefix.- Author:
- Leonardo Uribe
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Constructor SummaryConstructors Constructor Description ViewScopeProxyMap()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()voidforceDelegateCreation(FacesContext facesContext)Objectget(Object key)Map<String,Object>getDelegate()StringgetViewScopeId()booleanisEmpty()booleanisTransient()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,? extends Object> m)Objectremove(Object key)voidrestoreState(FacesContext context, Object state)ObjectsaveState(FacesContext context)voidsetTransient(boolean newTransientValue)intsize()Collection<Object>values()- 
Methods inherited from class java.util.HashMapclone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
 - 
Methods inherited from class java.util.AbstractMapequals, hashCode, toString
 
- 
 
- 
- 
- 
Method Detail- 
getViewScopeIdpublic String getViewScopeId() 
 - 
forceDelegateCreationpublic void forceDelegateCreation(FacesContext facesContext) 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containsKeypublic boolean containsKey(Object key) - Specified by:
- containsKeyin interface- Map<String,Object>
- Overrides:
- containsKeyin class- HashMap<String,Object>
 
 - 
containsValuepublic boolean containsValue(Object value) - Specified by:
- containsValuein interface- Map<String,Object>
- Overrides:
- containsValuein class- HashMap<String,Object>
 
 - 
clearpublic void clear() 
 - 
valuespublic Collection<Object> values() 
 - 
restoreStatepublic void restoreState(FacesContext context, Object state) - Specified by:
- restoreStatein interface- StateHolder
 
 - 
saveStatepublic Object saveState(FacesContext context) - Specified by:
- saveStatein interface- StateHolder
 
 - 
isTransientpublic boolean isTransient() - Specified by:
- isTransientin interface- StateHolder
 
 - 
setTransientpublic void setTransient(boolean newTransientValue) - Specified by:
- setTransientin interface- StateHolder
 
 
- 
 
-