Class RetrievalFactory

    • Method Detail

      • 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:
        Factory.bind(java.lang.Object)
      • 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:
        Factory.unbind(java.lang.Object)