org.eclipse.swordfish.internal.core.configuration
Class ConfigurationAgentImpl
java.lang.Object
org.eclipse.swordfish.internal.core.configuration.ConfigurationAgentImpl
- All Implemented Interfaces:
- ConfigurationAgent, EventHandler<ConfigurationEvent>
public class ConfigurationAgentImpl
- extends java.lang.Object
- implements EventHandler<ConfigurationEvent>, ConfigurationAgent
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationAgentImpl
public ConfigurationAgentImpl()
getSeverity
public Severity getSeverity()
getSubscribedTopic
public java.lang.String getSubscribedTopic()
- Description copied from interface:
EventHandler
- specified event topic name
- Specified by:
getSubscribedTopic in interface EventHandler<ConfigurationEvent>
- Returns:
- topic name, must not be
null or an empty String.
handleEvent
public void handleEvent(ConfigurationEvent configurationEvent)
- Description copied from interface:
EventHandler
- Call-back invoked asynchronously with event creator thread, used osgi EventAdmin
service as a transport.
- Specified by:
handleEvent in interface EventHandler<ConfigurationEvent>
- Parameters:
configurationEvent - the event received.
handleConfiguration
public void handleConfiguration(java.util.Map<java.lang.String,?> configurations)
- Specified by:
handleConfiguration in interface ConfigurationAgent
getConfigurationService
public ConfigurationService getConfigurationService()
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
getEventFilter
public EventFilter getEventFilter()
- Description copied from interface:
EventHandler
- returns event filter to filter incoming event depending its properties values.
- Specified by:
getEventFilter in interface EventHandler<ConfigurationEvent>
- Returns:
- an event filter or
null to receive all events for the subscribed
topic.