Project

General

Profile

Download (1.3 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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
package eu.etaxonomy.cdm.io.common;
10

    
11
import org.apache.logging.log4j.LogManager;
12
import org.apache.logging.log4j.Logger;
13

    
14
import eu.etaxonomy.cdm.common.IoResultBase;
15

    
16
/**
17
 * @author a.mueller
18
 * @since 11.05.2009
19
 */
20
public abstract class IoStateBase<CONFIG
21
        extends IIoConfigurator, IO extends ICdmIO, RESULT extends IoResultBase> {
22

    
23
	@SuppressWarnings("unused")
24
	private static final Logger logger = LogManager.getLogger(IoStateBase.class);
25

    
26
	private IO currentIO;
27

    
28
	protected CONFIG config;
29

    
30
	private RESULT result;
31

    
32
    //TODO config not necessary ones it it implemented in constructor for IOs too.
33
	public void initialize(CONFIG config){
34
	    this.config = config;
35
	}
36

    
37
	public CONFIG getConfig() {
38
		return config;
39
	}
40
	public void setConfig(CONFIG config) {
41
		this.config = config;
42
	}
43

    
44
	public void setCurrentIO(IO currentIO) {
45
		this.currentIO = currentIO;
46
	}
47
	public IO getCurrentIO() {
48
		return currentIO;
49
	}
50

    
51
    public RESULT getResult() {
52
        return result;
53
    }
54
    public void setResult(RESULT result) {
55
        this.result = result;
56
    }
57
}
(46-46/65)