org.eclipse.swordfish.core.configuration
Interface PollableConfigurationSource<T>

Type Parameters:
T - Type of the configuration object expected.
All Known Implementing Classes:
XmlConfigurationSource

public interface PollableConfigurationSource<T>

Can be queried for the configuration. Is plugged into the Swordfish as an osgi service with name org.eclipse.swordfish.api.configuration.PollableConfigurationSource.


Method Summary
 java.util.Map<java.lang.String,T> getConfigurations()
          Returns the mapping between PID(configuration ids as described in ConfigurationConsumer.getId()) and the configuration data.
 java.util.Map<java.lang.String,?> getProperties()
          Default properties.
 

Method Detail

getConfigurations

java.util.Map<java.lang.String,T> getConfigurations()
Returns the mapping between PID(configuration ids as described in ConfigurationConsumer.getId()) and the configuration data.

Returns:
a configuration Map, the result may be null if no configuration is provided.

getProperties

java.util.Map<java.lang.String,?> getProperties()
Default properties. May be enhanced or overridden by the properties provided at OSGI service registration. Merged properties are stored in and provided by an internal registry.

Returns:
Map of properties.