org.eclipse.swordfish.internal.resolver.backend.base
Class AbstractDocumentProvider

java.lang.Object
  extended by org.eclipse.swordfish.internal.resolver.backend.base.AbstractDocumentProvider
All Implemented Interfaces:
ConfigurationConsumer<java.lang.Object>, PrioritizedProvider, EndpointDocumentProvider
Direct Known Subclasses:
FilesystemDocumentProvider, SwordfishRegistryProvider

public abstract class AbstractDocumentProvider
extends java.lang.Object
implements EndpointDocumentProvider, ConfigurationConsumer<java.lang.Object>


Constructor Summary
AbstractDocumentProvider()
           
 
Method Summary
 java.lang.String getId()
          Uniquely identifies the configuration
 int getPriority()
          Get the provider's priority.
 void onReceiveConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
          The callback method invoked by the Swordfish environment when the configuration is changed
 void setPriority(int priority)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.swordfish.core.resolver.registry.EndpointDocumentProvider
getServiceProviderDescriptions
 

Constructor Detail

AbstractDocumentProvider

public AbstractDocumentProvider()
Method Detail

onReceiveConfiguration

public void onReceiveConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
Description copied from interface: ConfigurationConsumer
The callback method invoked by the Swordfish environment when the configuration is changed

Specified by:
onReceiveConfiguration in interface ConfigurationConsumer<java.lang.Object>
Parameters:
configuration - the new/updated configuration.

getId

public java.lang.String getId()
Description copied from interface: ConfigurationConsumer
Uniquely identifies the configuration

Specified by:
getId in interface ConfigurationConsumer<java.lang.Object>
Returns:
the identifier String, expected to be unique among all registered ConfigurationConsumer instances registered to the system. Must not be null or an empty String.

getPriority

public int getPriority()
Description copied from interface: PrioritizedProvider
Get the provider's priority. If several policy definition providers are registered at runtime the one with the highest priority will be chosen. In case more than one provider has highest priority, the first found will be returned.

Specified by:
getPriority in interface PrioritizedProvider

setPriority

public void setPriority(int priority)