org.eclipse.swordfish.internal.resolver.policy.definitions.provider
Class FilesystemPolicyDefinitionProvider

java.lang.Object
  extended by org.eclipse.swordfish.internal.resolver.policy.definitions.provider.FilesystemPolicyDefinitionProvider
All Implemented Interfaces:
ConfigurationConsumer<java.lang.String>, PolicyDefinitionProvider, PrioritizedProvider

public class FilesystemPolicyDefinitionProvider
extends java.lang.Object
implements PolicyDefinitionProvider, ConfigurationConsumer<java.lang.String>


Constructor Summary
FilesystemPolicyDefinitionProvider()
           
 
Method Summary
 java.lang.String getId()
          Uniquely identifies the configuration
 java.util.Collection<PolicyDefinitionDescription> getPolicyDefinitions(javax.xml.namespace.QName serviceProviderName)
          Retrieve the Policies for a service provider.
 int getPriority()
          Get the provider's priority.
 void onReceiveConfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)
          The callback method invoked by the Swordfish environment when the configuration is changed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemPolicyDefinitionProvider

public FilesystemPolicyDefinitionProvider()
Method Detail

getPolicyDefinitions

public java.util.Collection<PolicyDefinitionDescription> getPolicyDefinitions(javax.xml.namespace.QName serviceProviderName)
Description copied from interface: PolicyDefinitionProvider
Retrieve the Policies for a service provider.

Specified by:
getPolicyDefinitions in interface PolicyDefinitionProvider
Parameters:
serviceProviderName - the provider WSDL service name.
Returns:
assigned policies, an empty Collection if there are none.

getId

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

Specified by:
getId in interface ConfigurationConsumer<java.lang.String>
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.

onReceiveConfiguration

public void onReceiveConfiguration(java.util.Map<java.lang.String,java.lang.String> 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.String>
Parameters:
configuration - the new/updated configuration.

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