CreoleListener.java |
1 /* 2 * Copyright (c) 1998-2005, 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.8 2005/01/11 13:51:34 ian Exp $ 12 */ 13 package gate.event; 14 15 import gate.Resource; 16 17 /** 18 * A listener for events fired by the {@link gate.CreoleRegister} 19 * ({@link gate.event.CreoleEvent}). 20 * In a Gate system there are many classes that can fire {@link CreoleEvent}s 21 * but all this events are collected and fired back by the 22 * {@link gate.CreoleRegister} that can be obtained with a call to 23 * {@link gate.Gate#getCreoleRegister()} 24 */ 25 public interface CreoleListener extends java.util.EventListener{ 26 27 /**Called when a new {@link gate.Resource} has been loaded into the system*/ 28 public void resourceLoaded(CreoleEvent e); 29 30 /**Called when a {@link gate.Resource} has been removed from the system*/ 31 public void resourceUnloaded(CreoleEvent e); 32 33 /**Called when a {@link gate.DataStore} has been opened*/ 34 public void datastoreOpened(CreoleEvent e); 35 36 /**Called when a {@link gate.DataStore} has been created*/ 37 public void datastoreCreated(CreoleEvent e); 38 39 /**Called when a {@link gate.DataStore} has been closed*/ 40 public void datastoreClosed(CreoleEvent e); 41 42 /** 43 * Called when the creole register has renamed a resource.1 44 */ 45 public void resourceRenamed(Resource resource, String oldName, 46 String newName); 47 48 }