org.apache.hivemind.impl
Class ElementsProxyMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.apache.hivemind.impl.ElementsProxyMap
All Implemented Interfaces:
java.util.EventListener, java.util.Map, RegistryShutdownListener

public final class ElementsProxyMap
extends java.util.AbstractMap
implements RegistryShutdownListener

The Map implementation visible to the client code. It defers to another inner implementation of Map; initially this is a ElementsInnerProxyMap, but the inner proxy replaces itself with a real Map implementation containing the actual configuration elements.

Since:
1.1
Author:
Knut Wannheden

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Constructor Summary
ElementsProxyMap()
           
 
Method Summary
 java.util.Set entrySet()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void registryDidShutdown()
          Invoked when a service is being shutdown, and should release any external resources.
 void setInner(java.util.Map map)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementsProxyMap

public ElementsProxyMap()
Method Detail

registryDidShutdown

public void registryDidShutdown()
Description copied from interface: RegistryShutdownListener
Invoked when a service is being shutdown, and should release any external resources. A service should not attempt to use any resources or configurations, doing so may result in a runtime exception.

Specified by:
registryDidShutdown in interface RegistryShutdownListener

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
Specified by:
entrySet in class java.util.AbstractMap

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map
Overrides:
equals in class java.util.AbstractMap

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map
Overrides:
hashCode in class java.util.AbstractMap

setInner

public void setInner(java.util.Map map)