Class RetrievalFactory

java.lang.Object
de.uni_trier.wi2.procake.retrieval.RetrievalFactory
All Implemented Interfaces:
Factory

public class RetrievalFactory extends Object implements Factory
This factory creates several retriever instances. Several SystemRetrievers  are available.
Author:
Rainer Maximini
See Also:
  • Method Details

    • bind

      public static boolean bind(RetrievalFactoryObject implementation)
      add a retriever implementation to the retriever factory
      Parameters:
      implementation - retriever
    • getAvailableRetrieverNames

      public static List<String> getAvailableRetrieverNames()
      Returns:
      Returns a list of the names of all available retrievers.
    • newRetriever

      public static Retriever<? extends DataObject,? extends Query> newRetriever(String retrieverName)
      Creates a new retriever of the specified name.
      Parameters:
      retrieverName - The name of the retriever.
      Returns:
      Returns a new retriever for the specified name.
    • createMACFACRetriever

      public static AbstractMACFACRetriever createMACFACRetriever(Retriever<DataObject,Query> macRetriever, Retriever<DataObject,Query> facRetriever)
      Creates a new MAC/FAC retriever that is composed of the given MAC retriever and the given FAC retriever.
      Parameters:
      macRetriever - an instance of Retriever that performs the MAC phase
      facRetriever - an instance of Retriever that performs the FAC phase
      Returns:
      the composed MAC/FAC retriever instance
    • unbind

      public static boolean unbind(RetrievalFactoryObject implementation)
      remove a retriever implementation from the retriever factory
      Parameters:
      implementation - retriever
    • reset

      public void reset()
      Description copied from interface: Factory
      This method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
      Specified by:
      reset in interface Factory
    • bind

      public boolean bind(Object implementation)
      Description copied from interface: Factory
      Bind an implementation to the factory.
      Specified by:
      bind in interface Factory
      Parameters:
      implementation - The object to bind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also:
    • unbind

      public boolean unbind(Object implementation)
      Description copied from interface: Factory
      Unbinds an implementation from the factory.
      Specified by:
      unbind in interface Factory
      Parameters:
      implementation - The object to unbind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also: