Module java.management

Package javax.management.loading


package javax.management.loading

提供实现高级动态加载的类。请参阅JMX规范中的高级动态加载章节。

一个作为ClassLoader子类的MBean可以被用作类加载器,通过方法MBeanServer.createMBean(String, ObjectName, ObjectName, Object[], String[])创建其他MBeans,并通过方法MBeanServer.instantiate(String, ObjectName, Object[], String[])实例化任意对象。类MLet就是这样一个MBean的示例。它是一个URLClassLoader,因此可以配置要从中加载类的URL列表。

此外,MLet可以读取一个配置文件,该文件指定要在与MLet相同的MBean服务器中注册的一组MBeans。

每个MBean服务器都有一个包含在该MBean服务器中注册的所有ClassLoader子类的类加载器存储库。类加载器存储库被createMBeaninstantiate方法的形式使用,这些方法在MBeanServer接口中没有显式的加载器参数。当MLet类在其自己的URL集中找不到类时,也会使用类加载器存储库。

如果一个MBean实现了接口PrivateClassLoader,那么它不会被添加到类加载器存储库中。类PrivateMLetMLet的一个子类,实现了PrivateClassLoader

自 JDK 版本:
1.5
参见:
  • Class
    Description
    此接口的实例用于保持在MBean服务器中注册的类加载器列表。
    Deprecated.
    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.
    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.
    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.
    标记接口,指示一个ClassLoader不应该被添加到ClassLoaderRepository中。
    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.