Package | Description |
---|---|
org.apache.tamaya.events |
This package provides the main building blocks for handling configuration changes, such as
ConfigEventManager , ConfigEventListener and
artifacts to describe the changes (delta) of a Configuration or a PropertySource. |
org.apache.tamaya.events.internal |
This package contains internal default implementations for the config events module.
|
org.apache.tamaya.events.spi |
This package contains the SPI to implement the
ConfigEventManager singleton. |
Modifier and Type | Class and Description |
---|---|
class |
ConfigurationChange
Event that contains a set current changes that were applied or could be applied.
|
class |
ConfigurationContextChange
Event that contains a set of current changes that were applied or can be applied.
|
class |
PropertySourceChange
Event that contains a set current changes that were applied or could be applied.
|
Modifier and Type | Method and Description |
---|---|
static <T extends ConfigEvent> |
ConfigEventManager.addListener(ConfigEventListener l,
Class<T> eventType)
Adds a Config listener that listens to all kind of
ConfigEvent . |
static <T extends ConfigEvent> |
ConfigEventManager.getListeners()
Access all registered ConfigEventListeners listening to a all kind of event types globally.
|
static <T extends ConfigEvent> |
ConfigEventManager.getListeners(Class<T> type)
Access all registered ConfigEventListeners listening to a given event type.
|
static <T extends ConfigEvent> |
ConfigEventManager.removeListener(ConfigEventListener l,
Class<T> eventType)
Removes a listener registered for the given event type.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
ConfigEventManager.fireEvent(ConfigEvent<?> event)
Publishes a
ConfigurationChange synchronously to all interested listeners. |
static <T> void |
ConfigEventManager.fireEventAsynch(ConfigEvent<?> event)
Publishes a
ConfigurationChange asynchronously/multithreaded to all interested listeners. |
void |
ConfigEventListener.onConfigEvent(ConfigEvent<?> event)
Called if an event occurred.
|
Modifier and Type | Method and Description |
---|---|
<T extends ConfigEvent> |
DefaultConfigEventManagerSpi.addListener(ConfigEventListener l,
Class<T> eventType) |
<T extends ConfigEvent> |
DefaultConfigEventManagerSpi.removeListener(ConfigEventListener l,
Class<T> eventType) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultConfigEventManagerSpi.fireEvent(ConfigEvent<?> event) |
void |
DefaultConfigEventManagerSpi.fireEventAsynch(ConfigEvent<?> event) |
void |
LoggingConfigListener.onConfigEvent(ConfigEvent<?> event) |
void |
DefaultConfigurationContextChangeListener.onConfigEvent(ConfigEvent<?> event) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends ConfigEventListener> |
DefaultConfigEventManagerSpi.getListeners(Class<? extends ConfigEvent> eventType) |
Modifier and Type | Class and Description |
---|---|
class |
BaseConfigEvent<T>
Abstract base class for implementing your own configuration events.
|
Modifier and Type | Method and Description |
---|---|
<T extends ConfigEvent> |
ConfigEventManagerSpi.addListener(ConfigEventListener l,
Class<T> eventType)
Adds a listener for observing events of a given type.
|
<T extends ConfigEvent> |
ConfigEventManagerSpi.removeListener(ConfigEventListener l,
Class<T> eventType)
Removes a listener for observing events of a certain type.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigEventManagerSpi.fireEvent(ConfigEvent<?> event)
Publishes an event to all interested listeners, hereby executing all registered listeners sequentually and
synchronously
|
void |
ConfigEventManagerSpi.fireEventAsynch(ConfigEvent<?> event)
Publishes an event to all interested listeners, hereby publishing the change events asynchrously and in
parallel (multithreaded).
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends ConfigEventListener> |
ConfigEventManagerSpi.getListeners(Class<? extends ConfigEvent> eventType)
Access all listeners listening for a certain event type, including any global listeners.
|
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.