org.eclipse.swordfish.internal.core.configuration
Class ConfigurationAgentImpl

java.lang.Object
  extended by org.eclipse.swordfish.internal.core.configuration.ConfigurationAgentImpl
All Implemented Interfaces:
ConfigurationAgent, EventHandler<ConfigurationEvent>

public class ConfigurationAgentImpl
extends java.lang.Object
implements EventHandler<ConfigurationEvent>, ConfigurationAgent


Constructor Summary
ConfigurationAgentImpl()
           
 
Method Summary
 ConfigurationService getConfigurationService()
           
 EventFilter getEventFilter()
          returns event filter to filter incoming event depending its properties values.
 Severity getSeverity()
           
 java.lang.String getSubscribedTopic()
          specified event topic name
 void handleConfiguration(java.util.Map<java.lang.String,?> configurations)
           
 void handleEvent(ConfigurationEvent configurationEvent)
          Call-back invoked asynchronously with event creator thread, used osgi EventAdmin service as a transport.
 void setConfigurationService(ConfigurationService configurationService)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationAgentImpl

public ConfigurationAgentImpl()
Method Detail

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.