org.apache.sling.adapter.internal
Class AdapterFactoryDescriptorMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<AdapterFactoryDescriptorKey,AdapterFactoryDescriptor>
          extended by org.apache.sling.adapter.internal.AdapterFactoryDescriptorMap
All Implemented Interfaces:
Serializable, Cloneable, Map<AdapterFactoryDescriptorKey,AdapterFactoryDescriptor>, NavigableMap<AdapterFactoryDescriptorKey,AdapterFactoryDescriptor>, SortedMap<AdapterFactoryDescriptorKey,AdapterFactoryDescriptor>

public class AdapterFactoryDescriptorMap
extends TreeMap<AdapterFactoryDescriptorKey,AdapterFactoryDescriptor>

The AdapterFactoryDescriptorMap is a sorted map of AdapterFactoryDescriptor instances indexed (and ordered) by their AdapterFactoryDescriptorKey. This map is used to organize the registered AdapterFactory services for a given adaptable type.

Each entry in the map is a AdapterFactoryDescriptor thus enabling the registration of multiple factories for the same (adaptable, adapter) type tuple. Of course only the first entry (this is the reason for having a sorted map) for such a given tuple is actually being used. If that first instance is removed the eventual second instance may actually be used instead.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
AdapterFactoryDescriptorMap()
           
 
Method Summary
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

AdapterFactoryDescriptorMap

public AdapterFactoryDescriptorMap()


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.