org.embl.ebi.escience.scuflui.facets
Class FacetFinderRegistry

java.lang.Object
  extended by org.embl.ebi.escience.utils.TavernaSPIRegistry<FacetFinderSPI>
      extended by org.embl.ebi.escience.scuflui.facets.FacetFinderRegistry

public class FacetFinderRegistry
extends TavernaSPIRegistry<FacetFinderSPI>

A registry that maintains a list of all facet finder service providers.

The FacetFinderRegistry should be accessed through the instance obtained by calling FacetFinderRegistry.instance(). This instance is initialised with the SPI implementations available through the current class path.

Author:
Matthew Pocock, Stuart Owen

Method Summary
 java.util.List getFinders(DataThing dataThing)
          Get all facet finders that can decompose a user object and mime type.
static FacetFinderRegistry instance()
           
 
Methods inherited from class org.embl.ebi.escience.utils.TavernaSPIRegistry
addRegistryListener, getRepository, setRepository
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static FacetFinderRegistry instance()

getFinders

public java.util.List getFinders(DataThing dataThing)
Get all facet finders that can decompose a user object and mime type. If there are no facet finders, then this list is empty.

Parameters:
dataThing - the object to render
Returns:
a (possibly empty) List of FacetFinderSPI instances