public class PrivateMLet extends MLet implements PrivateClassLoader
ClassLoaderRepository
的MLet 。
该类与其父类MLet
完全一样, 但有一个例外。
当一个PrivateMLet在MBean服务器中注册时,它不会添加到该MBean服务器的ClassLoaderRepository
中 。
这是真的,因为这个类实现了接口PrivateClassLoader
。
Constructor and Description |
---|
PrivateMLet(URL[] urls, boolean delegateToCLR)
使用默认的委派父类ClassLoader构造一个新的指定URL的PrivateMLet。
|
PrivateMLet(URL[] urls, ClassLoader parent, boolean delegateToCLR)
为给定的URL构造一个新的PrivateMLet。
|
PrivateMLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR)
为指定的URL,父类加载器和URLStreamHandlerFactory构造一个新的PrivateMLet。
|
addURL, addURL, check, findClass, findLibrary, getLibraryDirectory, getMBeansFromURL, getMBeansFromURL, getURLs, loadClass, postDeregister, postRegister, preDeregister, preRegister, readExternal, setLibraryDirectory, writeExternal
close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, getResourceAsStream, getResources
public PrivateMLet(URL[] urls, boolean delegateToCLR)
urls
- 加载类和资源的URL。
delegateToCLR
- 如果在父类ClassLoader或URL中找不到类时,则MLet应委托其包含的MBeanServer ClassLoaderRepository
。
public PrivateMLet(URL[] urls, ClassLoader parent, boolean delegateToCLR)
urls
- 加载类和资源的URL。
parent
- 用于委派的父类加载器。
delegateToCLR
- 如果在父类ClassLoader或URL中找不到类时,则MLet应委托其包含的MBeanServer ClassLoaderRepository
。
public PrivateMLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR)
urls
- 加载类和资源的URL。
parent
- 用于委派的父类加载器。
factory
- 创建URL时要使用的URLStreamHandlerFactory。
delegateToCLR
- True if, when a class is not found in either the parent ClassLoader or the URLs, the MLet should delegate to its containing MBeanServer's
ClassLoaderRepository
.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.