01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.loader;
18:
19: /**
20: * Internal interface that <code>ClassLoader</code> implementations may
21: * optionally implement to support the auto-reload functionality of
22: * the classloader associated with the context.
23: *
24: * @author Craig R. McClanahan
25: * @version $Revision: 1.2 $ $Date: 2004/02/27 14:58:44 $
26: */
27:
28: public interface Reloader {
29:
30: /**
31: * Add a new repository to the set of places this ClassLoader can look for
32: * classes to be loaded.
33: *
34: * @param repository Name of a source of classes to be loaded, such as a
35: * directory pathname, a JAR file pathname, or a ZIP file pathname
36: *
37: * @exception IllegalArgumentException if the specified repository is
38: * invalid or does not exist
39: */
40: public void addRepository(String repository);
41:
42: /**
43: * Return a String array of the current repositories for this class
44: * loader. If there are no repositories, a zero-length array is
45: * returned.
46: */
47: public String[] findRepositories();
48:
49: /**
50: * Have one or more classes or resources been modified so that a reload
51: * is appropriate?
52: */
53: public boolean modified();
54:
55: }
|