KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > loader > StandardClassLoader


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 import java.net.URL JavaDoc;
22 import java.net.URLClassLoader JavaDoc;
23
24 /**
25  * Subclass implementation of <b>java.net.URLClassLoader</b> that knows how
26  * to load classes from disk directories, as well as local and remote JAR
27  * files. It also implements the <code>Reloader</code> interface, to provide
28  * automatic reloading support to the associated loader.
29  * <p>
30  * In all cases, URLs must conform to the contract specified by
31  * <code>URLClassLoader</code> - any URL that ends with a "/" character is
32  * assumed to represent a directory; all other URLs are assumed to be the
33  * address of a JAR file.
34  * <p>
35  * <strong>IMPLEMENTATION NOTE</strong> - Local repositories are searched in
36  * the order they are added via the initial constructor and/or any subsequent
37  * calls to <code>addRepository()</code>.
38  * <p>
39  * <strong>IMPLEMENTATION NOTE</strong> - At present, there are no dependencies
40  * from this class to any other Catalina class, so that it could be used
41  * independently.
42  *
43  * @author Craig R. McClanahan
44  * @author Remy Maucherat
45  * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
46  */

47
48 public class StandardClassLoader
49     extends URLClassLoader JavaDoc
50     implements StandardClassLoaderMBean {
51
52     public StandardClassLoader(URL JavaDoc repositories[]) {
53         super(repositories);
54     }
55
56     public StandardClassLoader(URL JavaDoc repositories[], ClassLoader JavaDoc parent) {
57         super(repositories, parent);
58     }
59
60 }
61
62
Popular Tags