public interface Registry<E,C>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Registry.EventPublisher<E>
An EventPublisher can be used to register event consumers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(java.lang.String configName,
C configuration)
Adds a configuration to the registry
|
java.util.Optional<E> |
find(java.lang.String name)
Find a named entry in the Registry
|
java.util.Optional<C> |
getConfiguration(java.lang.String configName)
Get a configuration by name
|
C |
getDefaultConfig()
Get the default configuration
|
Registry.EventPublisher<E> |
getEventPublisher()
Returns an EventPublisher which can be used to register event consumers.
|
io.vavr.collection.Map<java.lang.String,java.lang.String> |
getTags() |
java.util.Optional<E> |
remove(java.lang.String name)
Remove an entry from the Registry
|
java.util.Optional<E> |
replace(java.lang.String name,
E newEntry)
Replace an existing entry in the Registry by a new one.
|
void addConfiguration(java.lang.String configName,
C configuration)
configName - the configuration nameconfiguration - the added configurationjava.util.Optional<E> find(java.lang.String name)
name - the namejava.util.Optional<E> remove(java.lang.String name)
name - the namejava.util.Optional<E> replace(java.lang.String name, E newEntry)
name - the existing namenewEntry - a new entryjava.util.Optional<C> getConfiguration(java.lang.String configName)
configName - the configuration nameC getDefaultConfig()
io.vavr.collection.Map<java.lang.String,java.lang.String> getTags()
Registry.EventPublisher<E> getEventPublisher()