java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
javax.management.loading.MLet
javax.management.loading.PrivateMLet
- 所有已实现的接口:
-
Closeable
,Externalizable
,Serializable
,AutoCloseable
,MLetMBean
,PrivateClassLoader
,MBeanRegistration
@Deprecated(since="20", forRemoval=true) public class PrivateMLet extends MLet implements PrivateClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.
This API is part of Management Applets (m-lets), which is a legacy feature that allows loading of remote MBeans. This feature is not usable without a Security Manager, which is deprecated and subject to removal in a future release. Consequently, this API is also deprecated and subject to removal. There is no replacement.
一个未添加到
ClassLoaderRepository
的MLet。此类的行为与其父类MLet
完全相同,唯一的区别在于,当PrivateMLet在MBean服务器中注册时,它不会被添加到该MBean服务器的ClassLoaderRepository
中。这是因为此类实现了接口PrivateClassLoader
。
- 自JDK版本:
- 1.5
- 参见:
-
Constructor Summary
ConstructorDescriptionPrivateMLet
(URL[] urls, boolean delegateToCLR) 已弃用,将来会被移除: 此API元素可能会在将来的版本中被移除。为指定的URL使用默认委托父类加载器构造一个新的PrivateMLet。PrivateMLet
(URL[] urls, ClassLoader parent, boolean delegateToCLR) 已弃用,将来会被移除: 此API元素可能会在将来的版本中被移除。为给定的URL构造一个新的PrivateMLet。PrivateMLet
(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR) 已弃用,将来会被移除: 此API元素可能会在将来的版本中被移除。为指定的URL、父类加载器和URLStreamHandlerFactory构造一个新的PrivateMLet。 -
Method Summary
Methods declared in class javax.management.loading.MLet
addURL, addURL, check, findClass, findLibrary, getLibraryDirectory, getMBeansFromURL, getMBeansFromURL, getURLs, loadClass, postDeregister, postRegister, preDeregister, preRegister, readExternal, setLibraryDirectory, writeExternal
Methods declared in class java.net.URLClassLoader
close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, newInstance, newInstance
Methods declared in class java.security.SecureClassLoader
defineClass, defineClass
Methods declared in class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javax.management.loading.MLetMBean
getResource, getResourceAsStream, getResources
-
Constructor Details
-
PrivateMLet
Deprecated, for removal: This API element is subject to removal in a future version.使用默认委托父类加载器为指定的URL构造一个新的PrivateMLet。在首先在父类加载器中搜索后,将按照指定顺序搜索类和资源的URL。- 参数:
-
urls
- 用于加载类和资源的URL。 -
delegateToCLR
- 如果在父类加载器或URL中未找到类时,MLet应该委托给其包含的MBeanServer的ClassLoaderRepository
,则为true。
-
PrivateMLet
Deprecated, for removal: This API element is subject to removal in a future version.为给定的URL构造一个新的PrivateMLet。在首先在指定的父类加载器中搜索后,将按照指定顺序搜索类和资源的URL。父类参数将用作委托的父类加载器。- 参数:
-
urls
- 用于加载类和资源的URL。 -
parent
- 用于委托的父类加载器。 -
delegateToCLR
- 如果在父类加载器或URL中未找到类时,MLet应该委托给其包含的MBeanServer的ClassLoaderRepository
,则为true。
-
PrivateMLet
public PrivateMLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR) Deprecated, for removal: This API element is subject to removal in a future version.为指定的URL、父类加载器和URLStreamHandlerFactory构造一个新的PrivateMLet。父类参数将用作委托的父类加载器。工厂参数将用作在创建新URL时获取协议处理程序的流处理程序工厂。- 参数:
-
urls
- 用于加载类和资源的URL。 -
parent
- 用于委托的父类加载器。 -
factory
- 创建URL时要使用的URLStreamHandlerFactory。 -
delegateToCLR
- 如果在父类加载器或URL中未找到类时,MLet应该委托给其包含的MBeanServer的ClassLoaderRepository
,则为true。
-