org.mmbase.bridge.jsp.taglib.util
Class CollectorBacking

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by org.mmbase.bridge.jsp.taglib.util.BasicBacking
          extended by org.mmbase.bridge.jsp.taglib.util.CollectorBacking
All Implemented Interfaces:
Map<String,Object>, Backing

public class CollectorBacking
extends BasicBacking

A basic implementation for the backing of a ContextContainter. It uses a HashMap, but is also writes every entry to the temporary to the page-context, to make them available to JSP2's expression language, unless the 'ELIgnored' parameter of the MMBase taglib is true, or no pageContext is given in the constructor.

Since:
MMBase-1.9.2
Version:
$Id: BasicBacking.java 39537 2009-11-04 15:23:01Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Set<String> myKeys
           
(package private)  ContextContainer parent
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.util.BasicBacking
isELIgnored, myPageContextKeys, originalPageContextValues, pageContext
 
Constructor Summary
CollectorBacking(PageContext pc, ContextContainer parent)
           
 
Method Summary
 Object put(String key, Object value, boolean reset)
           
 void setJspVar(PageContext pc, String jspvar, int vartype, Object value)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.util.BasicBacking
clear, containsKey, containsOwnKey, entrySet, get, getOriginal, getOriginalMap, getPageContext, isELIgnored, mirrorPut, mirrorPut, pullPageContext, pushPageContext, put, release, remove, toString
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Field Detail

myKeys

protected final Set<String> myKeys

parent

final ContextContainer parent
Constructor Detail

CollectorBacking

public CollectorBacking(PageContext pc,
                        ContextContainer parent)
Parameters:
pc - The page-context to which variables must be reflected or null if this must not happen.
Method Detail

put

public Object put(String key,
                  Object value,
                  boolean reset)
           throws JspTagException
Overrides:
put in class BasicBacking
Throws:
JspTagException

setJspVar

public void setJspVar(PageContext pc,
                      String jspvar,
                      int vartype,
                      Object value)
Specified by:
setJspVar in interface Backing
Overrides:
setJspVar in class BasicBacking


MMBase 2.0-SNAPSHOT - null