Project

General

Profile

Download (1.36 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

    
10
package eu.etaxonomy.taxeditor.editor;
11

    
12
import org.apache.log4j.Logger;
13

    
14
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
15
import eu.etaxonomy.taxeditor.model.AbstractDataChangeBehaviour;
16

    
17
/**
18
 * <p>TaxonEditorInputDataChangeBehaviour class.</p>
19
 *
20
 * @author n.hoffmann
21
 * @created Jan 5, 2010
22
 * @version 1.0
23
 */
24
public class TaxonEditorInputDataChangeBehaviour extends
25
		AbstractDataChangeBehaviour {
26
	private static final Logger logger = Logger
27
			.getLogger(TaxonEditorInputDataChangeBehaviour.class);
28
	
29
	private TaxonEditorInput source;
30

    
31
	/**
32
	 * <p>Constructor for TaxonEditorInputDataChangeBehaviour.</p>
33
	 *
34
	 * @param taxonEditorInput a {@link eu.etaxonomy.taxeditor.editor.TaxonEditorInput} object.
35
	 */
36
	public TaxonEditorInputDataChangeBehaviour(TaxonEditorInput taxonEditorInput) {
37
		source = taxonEditorInput;
38
	}
39

    
40
	/* (non-Javadoc)
41
	 * @see eu.etaxonomy.taxeditor.model.AbstractDataChangeBehaviour#reactOnDataChange(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap)
42
	 */
43
	/** {@inheritDoc} */
44
	@Override
45
	public void reactOnDataChange(CdmDataChangeMap events) {
46
		source.update(events);
47

    
48
	}
49
}
(8-8/11)