fix #2187
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / TaxonEditorInputDataChangeBehaviour.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.editor;
12
13 import org.apache.log4j.Logger;
14
15 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
16 import eu.etaxonomy.taxeditor.model.AbstractDataChangeBehaviour;
17
18 /**
19 * <p>TaxonEditorInputDataChangeBehaviour class.</p>
20 *
21 * @author n.hoffmann
22 * @created Jan 5, 2010
23 * @version 1.0
24 */
25 public class TaxonEditorInputDataChangeBehaviour extends
26 AbstractDataChangeBehaviour {
27 private static final Logger logger = Logger
28 .getLogger(TaxonEditorInputDataChangeBehaviour.class);
29
30 private TaxonEditorInput source;
31
32 /**
33 * <p>Constructor for TaxonEditorInputDataChangeBehaviour.</p>
34 *
35 * @param taxonEditorInput a {@link eu.etaxonomy.taxeditor.editor.TaxonEditorInput} object.
36 */
37 public TaxonEditorInputDataChangeBehaviour(TaxonEditorInput taxonEditorInput) {
38 source = taxonEditorInput;
39 }
40
41 /* (non-Javadoc)
42 * @see eu.etaxonomy.taxeditor.model.AbstractDataChangeBehaviour#reactOnDataChange(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap)
43 */
44 /** {@inheritDoc} */
45 @Override
46 public void reactOnDataChange(CdmDataChangeMap events) {
47 source.update(events);
48
49 }
50 }