Class RetrievalFactory
java.lang.Object
de.uni_trier.wi2.procake.retrieval.RetrievalFactory
- All Implemented Interfaces:
Factory
This factory creates several retriever instances. Several
SystemRetrievers
are
available.- Author:
- Rainer Maximini
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bind
(RetrievalFactoryObject implementation) add a retriever implementation to the retriever factoryboolean
Bind an implementation to the factory.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.static Retriever<? extends DataObject,
? extends Query> newRetriever
(String retrieverName) Creates a new retriever of the specified name.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static boolean
unbind
(RetrievalFactoryObject implementation) remove a retriever implementation from the retriever factoryboolean
Unbinds an implementation from the factory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
Method Details
-
bind
add a retriever implementation to the retriever factory- Parameters:
implementation
- retriever
-
getAvailableRetrieverNames
- Returns:
- Returns a list of the names of all available retrievers.
-
newRetriever
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. -
unbind
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. -
bind
Description copied from interface:Factory
Bind an implementation to the factory. -
unbind
Description copied from interface:Factory
Unbinds an implementation from the factory.
-