| DatastoreListener |

    1   /*
    2    *  Copyright (c) 1998-2001, The University of Sheffield.
    3    *
    4    *  This file is part of GATE (see http://gate.ac.uk/), and is free
    5    *  software, licenced under the GNU Library General Public License,
    6    *  Version 2, June 1991 (in the distribution as file licence.html,
    7    *  and also available at http://gate.ac.uk/gate/licence.html).
    8    *
    9    *  Valentin Tablan 21/04/2001
    10   *
    11   *  $Id: DatastoreListener.java,v 1.1 2001/04/21 15:58:13 valyt Exp $
    12   */
    13  package gate.event;
    14
    15  import java.util.EventListener;
    16
    17  /**
    18   * A listener for {@link DatastoreEvent}s.
    19   */
    20  public interface DatastoreListener extends EventListener {
    21
    22    /**
    23     * Called by a datastore when a new resource has been adopted
    24     */
    25    public void resourceAdopted(DatastoreEvent evt);
    26
    27    /**
    28     * Called by a datastore when a resource has been deleted
    29     */
    30    public void resourceDeleted(DatastoreEvent evt);
    31
    32    /**
    33     * Called by a datastore when a resource has been wrote into the datastore
    34     */
    35    public void resourceWritten(DatastoreEvent evt);
    36
    37  }

| DatastoreListener |