📄 standardclassloader.java
字号:
/*
* Copyright 1999,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.catalina.loader;
import java.net.URL;
import java.net.URLClassLoader;
/**
* Subclass implementation of <b>java.net.URLClassLoader</b> that knows how
* to load classes from disk directories, as well as local and remote JAR
* files. It also implements the <code>Reloader</code> interface, to provide
* automatic reloading support to the associated loader.
* <p>
* In all cases, URLs must conform to the contract specified by
* <code>URLClassLoader</code> - any URL that ends with a "/" character is
* assumed to represent a directory; all other URLs are assumed to be the
* address of a JAR file.
* <p>
* <strong>IMPLEMENTATION NOTE</strong> - Local repositories are searched in
* the order they are added via the initial constructor and/or any subsequent
* calls to <code>addRepository()</code>.
* <p>
* <strong>IMPLEMENTATION NOTE</strong> - At present, there are no dependencies
* from this class to any other Catalina class, so that it could be used
* independently.
*
* @author Craig R. McClanahan
* @author Remy Maucherat
* @version $Revision: 303071 $ $Date: 2004-08-05 06:54:43 -0400 (Thu, 05 Aug 2004) $
*/
public class StandardClassLoader
extends URLClassLoader
implements StandardClassLoaderMBean {
public StandardClassLoader(URL repositories[]) {
super(repositories);
}
public StandardClassLoader(URL repositories[], ClassLoader parent) {
super(repositories, parent);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -