package uk.ac.ebi.quickgo.annotation.download.header;

import java.util.Map;

/**
 * @author Tony Wardell
 * Date: 22/05/2017
 * Time: 15:46
 * Created with IntelliJ IDEA.
 */
public class HeaderCreatorFactory {

    private final Map<String,HeaderCreator> creatorSource;

    public HeaderCreatorFactory(
            Map<String, HeaderCreator> creatorSource) {
        this.creatorSource = creatorSource;
    }

    public HeaderCreator provide(String type){
        return creatorSource.get(type);
    }
}

@@ -75,16 +75,90 @@
 p;%0A%0A/**%0A
+ * Source of header creators, based on the associated file/media type.%0A *%0A
  * @auth

Add javadoc.