org.alfresco.util
Class ValueDerivingMapFactory

java.lang.Object
  extended by org.alfresco.util.ValueDerivingMapFactory

public class ValueDerivingMapFactory
extends java.lang.Object

A factory for maps that dynamically derive their looked up values from a given source object.


Nested Class Summary
static interface ValueDerivingMapFactory.ValueDeriver
          An interface for objects that derive the value for a specific entry in the map.
 
Constructor Summary
ValueDerivingMapFactory(java.util.Map valueDerivers)
          Instantiates a new value deriving map factory.
 
Method Summary
 java.util.Map getMap(java.lang.Object source)
          Gets a map that derives its values from the given source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueDerivingMapFactory

public ValueDerivingMapFactory(java.util.Map valueDerivers)
Instantiates a new value deriving map factory.

Parameters:
valueDerivers - a map of value derivers that derive the value of each entry from a given source
Method Detail

getMap

public java.util.Map getMap(java.lang.Object source)
Gets a map that derives its values from the given source.

Parameters:
source - the source
Returns:
the map


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.