org.mule.util
Class MapCombiner

java.lang.Object
  extended by org.mule.util.MapCombiner
All Implemented Interfaces:
Map

public class MapCombiner
extends Object
implements Map

This allows a collection (list) of maps to be defined in Spring, via the "list" property, and then presents all the maps as a single combine map at run time. For efficiency the combination of maps is done once and then cached.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static String LIST
           
static int UNLIMITED_DEPTH
           
 
Constructor Summary
MapCombiner()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 List getList()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 void setList(List list)
           
 void setMaxDepth(int maxDepth)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LIST

public static final String LIST
See Also:
Constant Field Values

UNLIMITED_DEPTH

public static final int UNLIMITED_DEPTH
See Also:
Constant Field Values
Constructor Detail

MapCombiner

public MapCombiner()
Method Detail

setMaxDepth

public void setMaxDepth(int maxDepth)

setList

public void setList(List list)

getList

public List getList()

hashCode

public int hashCode()
Specified by:
hashCode in interface Map
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Specified by:
equals in interface Map
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

size

public int size()
Specified by:
size in interface Map

clear

public void clear()
Specified by:
clear in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

values

public Collection values()
Specified by:
values in interface Map

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.