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 12/12/2000
10   *
11   *  $Id: CreoleListener.java,v 1.4 2001/05/09 11:08:26 valyt Exp $
12   */
13  package gate.event;
14  
15  /**
16   * A listener for events fired by the {@link gate.CreoleRegister}
17   * ({@link gate.event.CreoleEvent}).
18   * In a Gate system there are many classes that can fire {@link CreoleEvent}s
19   * but all this events are collected and fired back by the
20   * {@link gate.CreoleRegister} that can be obtained with a call to
21   * {@link gate.Gate#getCreoleRegister()}
22   */
23  public interface CreoleListener extends java.util.EventListener{
24  
25    /**Called when a new {@link gate.Resource} has been loaded into the system*/
26    public void resourceLoaded(CreoleEvent e);
27  
28    /**Called when a {@link gate.Resource} has been removed from the system*/
29    public void resourceUnloaded(CreoleEvent e);
30  
31    /**Called when a {@link gate.DataStore} has been opened*/
32    public void datastoreOpened(CreoleEvent e);
33  
34    /**Called when a {@link gate.DataStore} has been created*/
35    public void datastoreCreated(CreoleEvent e);
36  
37    /**Called when a {@link gate.DataStore} has been closed*/
38    public void datastoreClosed(CreoleEvent e);
39  
40  }