07488af38e42cb272c7a711ac8078106d2348088
[cdmlib.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / eflora / centralAfrica / ericaceae / CentralAfricaEricaceaeImportConfigurator.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.io.eflora.centralAfrica.ericaceae;
11
12 import org.apache.log4j.Logger;
13 import org.springframework.stereotype.Component;
14
15 import eu.etaxonomy.cdm.database.ICdmDataSource;
16 import eu.etaxonomy.cdm.io.eflora.EfloraImportConfigurator;
17
18 @Component
19 public class CentralAfricaEricaceaeImportConfigurator extends EfloraImportConfigurator {
20 @SuppressWarnings("unused")
21 private static final Logger logger = Logger.getLogger(CentralAfricaEricaceaeImportConfigurator.class);
22
23 public static CentralAfricaEricaceaeImportConfigurator NewInstance(String url, ICdmDataSource destination){
24 return new CentralAfricaEricaceaeImportConfigurator(url, destination);
25 }
26
27 private String classificationTitle = "Flore d'Afrique Centrale - Ericaceae";
28 private String sourceReferenceTitle = "Flore d'Afrique Centrale - Ericaceae";
29
30
31 /* (non-Javadoc)
32 * @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#makeIoClassList()
33 */
34 protected void makeIoClassList(){
35 ioClassList = new Class[]{
36 CentralAfricaEricaceaeTaxonImport.class
37 };
38 };
39
40
41 private CentralAfricaEricaceaeImportConfigurator() {
42 super();
43 }
44
45 /**
46 * @param url
47 * @param destination
48 */
49 private CentralAfricaEricaceaeImportConfigurator(String url, ICdmDataSource destination) {
50 super(url, destination);
51 this.setClassificationTitle(classificationTitle);
52 this.setSourceReferenceTitle(sourceReferenceTitle);
53 }
54
55
56
57 /* (non-Javadoc)
58 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
59 */
60 public CentralAfricaEricaceaeImportState getNewState() {
61 return new CentralAfricaEricaceaeImportState(this);
62 }
63
64
65
66 }