1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * 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 19 package org.apache.catalina.loader; 20 21 22 /** 23 * Internal interface that <code>ClassLoader</code> implementations may 24 * optionally implement to support the auto-reload functionality of 25 * the classloader associated with the context. 26 * 27 * @author Craig R. McClanahan 28 * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ 29 */ 30 31 public interface Reloader { 32 33 34 /** 35 * Add a new repository to the set of places this ClassLoader can look for 36 * classes to be loaded. 37 * 38 * @param repository Name of a source of classes to be loaded, such as a 39 * directory pathname, a JAR file pathname, or a ZIP file pathname 40 * 41 * @exception IllegalArgumentException if the specified repository is 42 * invalid or does not exist 43 */ 44 public void addRepository(String repository); 45 46 47 /** 48 * Return a String array of the current repositories for this class 49 * loader. If there are no repositories, a zero-length array is 50 * returned. 51 */ 52 public String[] findRepositories(); 53 54 55 /** 56 * Have one or more classes or resources been modified so that a reload 57 * is appropriate? 58 */ 59 public boolean modified(); 60 61 62 } 63