01 /*
02 * ProcessingResource.java
03 *
04 * Copyright (c) 1995-2010, The University of Sheffield. See the file
05 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06 *
07 * This file is part of GATE (see http://gate.ac.uk/), and is free
08 * software, licenced under the GNU Library General Public License,
09 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * Hamish Cunningham, 11/Feb/2000
13 *
14 * $Id: ProcessingResource.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate;
18
19 import gate.creole.ResourceInstantiationException;
20
21 /** Models all sorts of processing resources.
22 * Because <CODE>run()</CODE> doesn't throw exceptions, we
23 * have a <CODE>check()</CODE> that will re-throw any exception
24 * that was caught when <CODE>run()</CODE> was invoked.
25 */
26 public interface ProcessingResource extends Resource, Executable
27 {
28
29 /**
30 * Reinitialises the processing resource. After calling this method the
31 * resource should be in the state it is after calling init.
32 * If the resource depends on external resources (such as rules files) then
33 * the resource will re-read those resources. If the data used to create
34 * the resource has changed since the resource has been created then the
35 * resource will change too after calling reInit().
36 */
37 public void reInit() throws ResourceInstantiationException;
38 } // interface ProcessingResource
|