org.eclipse.swordfish.internal.resolver
Class ProvidersRegistry<T extends PrioritizedProvider>

java.lang.Object
  extended by org.eclipse.swordfish.internal.resolver.ProvidersRegistry<T>

public class ProvidersRegistry<T extends PrioritizedProvider>
extends java.lang.Object


Constructor Summary
ProvidersRegistry()
           
 
Method Summary
 T getPreferredProvider()
           
 java.util.Collection<T> getProviders()
           
 boolean isEmpty()
           
 void setProviders(java.util.Collection<T> providers)
          Set the collection of providers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvidersRegistry

public ProvidersRegistry()
Method Detail

getPreferredProvider

public T getPreferredProvider()
Returns:
the preferred provider based on the priority assigned

getProviders

public java.util.Collection<T> getProviders()
Returns:
an unmodifiable wrapper of the provider collection.

setProviders

public void setProviders(java.util.Collection<T> providers)
Set the collection of providers

Parameters:
providers - - the new collection

isEmpty

public boolean isEmpty()
Returns:
true if a provider collection containing elements is embedded