01 /*
02 * Copyright (c) 1995-2010, The University of Sheffield. See the file
03 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04 *
05 * This file is part of GATE (see http://gate.ac.uk/), and is free
06 * software, licenced under the GNU Library General Public License,
07 * Version 2, June 1991 (in the distribution as file licence.html,
08 * and also available at http://gate.ac.uk/gate/licence.html).
09 *
10 * Valentin Tablan 12/12/2000
11 *
12 * $Id: CreoleListener.java 12006 2009-12-01 17:24:28Z thomas_heitz $
13 */
14 package gate.event;
15
16 import gate.Resource;
17
18 /**
19 * A listener for events fired by the {@link gate.CreoleRegister}
20 * ({@link gate.event.CreoleEvent}).
21 * In a Gate system there are many classes that can fire {@link CreoleEvent}s
22 * but all this events are collected and fired back by the
23 * {@link gate.CreoleRegister} that can be obtained with a call to
24 * {@link gate.Gate#getCreoleRegister()}
25 */
26 public interface CreoleListener extends java.util.EventListener{
27
28 /**Called when a new {@link gate.Resource} has been loaded into the system*/
29 public void resourceLoaded(CreoleEvent e);
30
31 /**Called when a {@link gate.Resource} has been removed from the system*/
32 public void resourceUnloaded(CreoleEvent e);
33
34 /**Called when a {@link gate.DataStore} has been opened*/
35 public void datastoreOpened(CreoleEvent e);
36
37 /**Called when a {@link gate.DataStore} has been created*/
38 public void datastoreCreated(CreoleEvent e);
39
40 /**Called when a {@link gate.DataStore} has been closed*/
41 public void datastoreClosed(CreoleEvent e);
42
43 /**
44 * Called when the creole register has renamed a resource.1
45 */
46 public void resourceRenamed(Resource resource, String oldName,
47 String newName);
48
49 }
|