K
- key typeV
- value typepublic class LocalRegistry<K,V> extends Object implements Registry<K,V>
Registry
implementation.Registry.Listener<K,V>
Constructor and Description |
---|
LocalRegistry(Group group,
RegistryEntryProvider<K,V> provider) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Registry.Listener<K,V> listener)
Adds a listener to this registry.
|
void |
close()
Removes our entry from the registry.
|
Map<K,V> |
getEntries()
Returns all registry entries in this group.
|
Map.Entry<K,V> |
getEntry(Node node)
Returns the registry entry for the specified node.
|
Group |
getGroup()
Returns the group associated with this factory.
|
void |
removeListener(Registry.Listener<K,V> listener)
Adds a listener from this registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocalEntry
public LocalRegistry(Group group, RegistryEntryProvider<K,V> provider)
public Group getGroup()
Registry
public void addListener(Registry.Listener<K,V> listener)
Registry
addListener
in interface Registry<K,V>
listener
- a registry listenerpublic void removeListener(Registry.Listener<K,V> listener)
Registry
removeListener
in interface Registry<K,V>
listener
- a registry listenerpublic Map<K,V> getEntries()
Registry
getEntries
in interface Registry<K,V>
public Map.Entry<K,V> getEntry(Node node)
Registry
Copyright © 2016 JBoss by Red Hat. All rights reserved.