1 |
e8409423
|
n.hoffmann
|
/**
|
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 |
9766a939
|
n.hoffmann
|
package eu.etaxonomy.taxeditor.model;
|
11 |
e8409423
|
n.hoffmann
|
|
12 |
|
|
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
|
13 |
|
|
|
14 |
|
|
/**
|
15 |
|
|
* This bridge delegates the update events to specific implementors
|
16 |
3be6ef3e
|
n.hoffmann
|
*
|
17 |
e8409423
|
n.hoffmann
|
* TODO make this a bean
|
18 |
3be6ef3e
|
n.hoffmann
|
*
|
19 |
e8409423
|
n.hoffmann
|
* @author n.hoffmann
|
20 |
|
|
* @created 01.04.2009
|
21 |
|
|
* @version 1.0
|
22 |
|
|
*/
|
23 |
|
|
public class DataChangeBridge {
|
24 |
|
|
|
25 |
3be6ef3e
|
n.hoffmann
|
/**
|
26 |
|
|
* <p>handleDataChange</p>
|
27 |
|
|
*
|
28 |
|
|
* @param changeEvents a {@link eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap} object.
|
29 |
|
|
* @param behavior a {@link eu.etaxonomy.taxeditor.model.IDataChangeBehavior} object.
|
30 |
|
|
*/
|
31 |
e8409423
|
n.hoffmann
|
public static void handleDataChange(CdmDataChangeMap changeEvents, IDataChangeBehavior behavior){
|
32 |
|
|
behavior.reactOnDataChange(changeEvents);
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
}
|