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

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by org.mmbase.bridge.jsp.taglib.util.ContextContainer
          extended by org.mmbase.bridge.jsp.taglib.util.StandaloneContextContainer
              extended by org.mmbase.bridge.jsp.taglib.util.ContextCollector
All Implemented Interfaces:
Map<String,Object>

public class ContextCollector
extends StandaloneContextContainer

A helper class for Lists, to implement ContextProvider. This ContextContainer writes every key to it's parent too, so it is 'transparent'.

Since:
MMBase-1.7
Version:
$Id: ContextCollector.java 40226 2009-12-14 10:50:33Z 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
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.util.StandaloneContextContainer
backing, parent
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.util.ContextContainer
LOCATION_APPLICATION, LOCATION_ATTRIBUTES, LOCATION_COOKIE, LOCATION_MULTIPART, LOCATION_MULTIPART_OPT, LOCATION_NOTSET, LOCATION_PAGE, LOCATION_PARAMETERS, LOCATION_PARENT, LOCATION_REQUEST, LOCATION_SESSION, LOCATION_THIS
 
Constructor Summary
ContextCollector(ContextProvider p)
           
 
Method Summary
protected  BasicBacking createBacking(PageContext pc)
           
 void doAfterBody(boolean iteratesAgain)
          For a context-collector it also interesting to have a 'doAFterBody', because it can be iterated again.
protected  void register(String newid, Object n, boolean check, boolean checkParent)
           
 void release(PageContext pc, ContextContainer p)
           
 void unRegister(String key)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.util.StandaloneContextContainer
entrySet, getBacking, getParent, keySet, setParent, simpleContainsKey, simpleGet
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.util.ContextContainer
clear, containsKey, containsKey, entrySet, find, find, findAndRegister, findAndRegister, findAndRegister, findAndRegister, findAndRegister, findAndRegisterString, findAndRegisterString, fixEncoding, fixEncoding, get, get, getDefaultCharacterEncoding, getId, getObject, getPageContext, getPair, isContextIdentifierChar, isPresent, isRegistered, locationToString, put, register, register, register, registerAll, registerNode, remove, reregister, setJspVar, stringToLocation, toString, unRegister, unRegisterAll
 
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
 

Constructor Detail

ContextCollector

public ContextCollector(ContextProvider p)
                 throws JspTagException
Throws:
JspTagException
Method Detail

createBacking

protected BasicBacking createBacking(PageContext pc)
Overrides:
createBacking in class StandaloneContextContainer

unRegister

public void unRegister(String key)
                throws JspTagException
Overrides:
unRegister in class ContextContainer
Throws:
JspTagException

register

protected void register(String newid,
                        Object n,
                        boolean check,
                        boolean checkParent)
                 throws JspTagException
Overrides:
register in class ContextContainer
Throws:
JspTagException

doAfterBody

public final void doAfterBody(boolean iteratesAgain)
                       throws JspTagException
For a context-collector it also interesting to have a 'doAFterBody', because it can be iterated again. It calls ContextContainer.clear().

Throws:
JspTagException

release

public void release(PageContext pc,
                    ContextContainer p)
Overrides:
release in class StandaloneContextContainer


MMBase 2.0-SNAPSHOT - null