org.apache.hivemind.impl
Class ElementsProxyMap
java.lang.Object
java.util.AbstractMap
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 classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry |
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 |
ElementsProxyMap
public ElementsProxyMap()
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)