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