org.embl.ebi.escience.utils
Class TavernaSPIRegistry<T>

java.lang.Object
  extended by org.embl.ebi.escience.utils.TavernaSPIRegistry<T>
Direct Known Subclasses:
FacetFinderRegistry, LocalWorkerRegistry, PerspectiveRegistry, ProcessorActionRegistry, ProcessorRegistry, RendererRegistry, ResultMapSaveRegistry, ScavengerActionRegistry, ScavengerHelperRegistry, ScavengerRegistry, ScuflModelActionRegistry, WorkflowEventListenerRegistry

public class TavernaSPIRegistry<T>
extends java.lang.Object

Base class of the Registry classes in Taverna. Uses the SPI pattern to discover classes of the type defined by spiClass in the constructor.

Author:
Stuart Owen

Constructor Summary
TavernaSPIRegistry(java.lang.Class<T> spiClass)
           
 
Method Summary
 void addRegistryListener(RegistryListener listener)
           
static Repository getRepository()
           
static void setRepository(Repository repository)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TavernaSPIRegistry

public TavernaSPIRegistry(java.lang.Class<T> spiClass)
Method Detail

setRepository

public static void setRepository(Repository repository)

addRegistryListener

public void addRegistryListener(RegistryListener listener)

getRepository

public static Repository getRepository()
Returns:
an instance of the Repository, if set by setRepository