2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.model
;
12 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
15 * This bridge delegates the update events to specific implementors
17 * TODO make this a bean
23 public class DataChangeBridge
{
26 * <p>handleDataChange</p>
28 * @param changeEvents a {@link eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap} object.
29 * @param behavior a {@link eu.etaxonomy.taxeditor.model.IDataChangeBehavior} object.
31 public static void handleDataChange(CdmDataChangeMap changeEvents
, IDataChangeBehavior behavior
){
32 behavior
.reactOnDataChange(changeEvents
);