Interface DispatchingDocumentFactory.DispatchingStrategy

    • Method Detail

      • factoryNumber

        int factoryNumber​(Reference2ObjectMap<Enum<?>,​Object> metadata,
                          PropertyBasedDocumentFactory factory)
        Decides the index of the factory to be used for the given metadata, possibly using a factory to resolve property names.
        Parameters:
        metadata - the metadata of the document to be produced.
        factory - the factory used to resolve metadata names.
        Returns:
        the factory index.