src/java.management/share/classes/javax/management/loading/package.html
author darcy
Wed, 23 Oct 2019 13:01:40 -0700
changeset 58766 54ffb15c4839
parent 47216 71c04702a3d5
permissions -rw-r--r--
8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.* Reviewed-by: rriggs, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<title>javax.management.loading package</title>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
<!--
46050
f51c14dc540f 8181895: javax management docs contain links to technotes
uvangapally
parents: 25859
diff changeset
     5
Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    10
published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    12
by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
5551
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    24
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    25
or visit www.oracle.com if you need additional information or have any
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    26
questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
</head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
<body bgcolor="white">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
      <p>Provides the classes which implement advanced dynamic
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	loading.  See the chapter <em>Advanced Dynamic Loading</em> in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	the <a href="#spec">JMX Specification</a>.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
      <p>An MBean that is of a subclass of {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
	java.lang.ClassLoader} can be used as a class loader to create
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
	other MBeans via the method {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
	javax.management.MBeanServer#createMBean(String, ObjectName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	ObjectName, Object[], String[])}, and to instantiate arbitrary
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	objects via the method {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
	javax.management.MBeanServer#instantiate(String, ObjectName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
	Object[], String[])}.  The {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
	javax.management.loading.MLet MLet} class is an example of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
	such an MBean.  It is a {@link java.net.URLClassLoader
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
	URLClassLoader}, so the list of URLs to load classes from can
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
	be configured.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
      <p>Additionally, an <code>MLet</code> can read a configuration
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
	file that specifies a set of MBeans to be registered in the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
	MBean Server as the <code>MLet</code>.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
      <p>Every MBean Server has a <em>class loader repository</em>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
	containing all MBeans registered in that MBean Server that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
	are of a subclass of {@link java.lang.ClassLoader}.  The class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
	loader repository is used by the forms of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
	<code>createMBean</code> and <code>instantiate</code> methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
	in the {@link javax.management.MBeanServer MBeanServer}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
	interface that do not have an explicit loader parameter.  It
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
	is also used by the <code>MLet</code> class when it does not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
	find a class in its own set of URLs.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
      <p>If an MBean implements the interface {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
	javax.management.loading.PrivateClassLoader PrivateClassLoader},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
	then it is not added to the class loader repository.  The class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
	{@link javax.management.loading.PrivateMLet PrivateMLet} is a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
	subclass of <code>MLet</code> that implements
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
	<code>PrivateClassLoader</code>.</p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    <p id="spec">
46050
f51c14dc540f 8181895: javax management docs contain links to technotes
uvangapally
parents: 25859
diff changeset
    70
    @see <a href="https://jcp.org/aboutJava/communityprocess/mrel/jsr160/index2.html">
f51c14dc540f 8181895: javax management docs contain links to technotes
uvangapally
parents: 25859
diff changeset
    71
      JMX Specification, version 1.4</a>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
      @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
</BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
</HTML>