K
- the type of the registry entry keyV
- the type of the registry entry valuepublic interface Registry<K,V> extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static interface |
Registry.Listener<K,V>
Listener for added, updated and removed entries.
|
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.
|
default Map.Entry<K,V> |
getLocalEntry()
Deprecated.
Use
getEntry(Node) instead. |
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<K,V> getEntries()
Map.Entry<K,V> getEntry(Node node)
node
- a node@Deprecated default Map.Entry<K,V> getLocalEntry()
getEntry(Node)
instead.RegistryEntryProvider
.void close()
close
in interface AutoCloseable
Copyright © 2016 JBoss by Red Hat. All rights reserved.