public interface Registry<K,V> extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static interface |
Registry.Listener<K,V> |
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.
|
Map.Entry<K,V> |
getLocalEntry()
Refreshes and returns the local registry entry from the
RegistryEntryProvider . |
void |
removeListener(Registry.Listener<K,V> listener)
Adds a listener from this registry
|
Group getGroup()
void addListener(Registry.Listener<K,V> listener)
listener
- a registry listenervoid removeListener(Registry.Listener<K,V> listener)
listener
- a registry listenerMap.Entry<K,V> getEntry(Node node)
node
- a nodeMap.Entry<K,V> getLocalEntry()
RegistryEntryProvider
.void close()
close
in interface AutoCloseable
Copyright © 2013 JBoss by Red Hat. All rights reserved.