author | uvangapally |
Tue, 01 Aug 2017 10:33:47 +0530 | |
changeset 46050 | f51c14dc540f |
parent 25859 | 3317bb8137f4 |
permissions | -rw-r--r-- |
2 | 1 |
<html> |
2 |
<head> |
|
3 |
<title>javax.management.loading package</title> |
|
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 | 6 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7 |
||
8 |
This code is free software; you can redistribute it and/or modify it |
|
9 |
under the terms of the GNU General Public License version 2 only, as |
|
5506 | 10 |
published by the Free Software Foundation. Oracle designates this |
2 | 11 |
particular file as subject to the "Classpath" exception as provided |
5506 | 12 |
by Oracle in the LICENSE file that accompanied this code. |
2 | 13 |
|
14 |
This code is distributed in the hope that it will be useful, but WITHOUT |
|
15 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
16 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
17 |
version 2 for more details (a copy is included in the LICENSE file that |
|
18 |
accompanied this code). |
|
19 |
||
20 |
You should have received a copy of the GNU General Public License version |
|
21 |
2 along with this work; if not, write to the Free Software Foundation, |
|
22 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
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 | 27 |
--> |
28 |
</head> |
|
29 |
<body bgcolor="white"> |
|
30 |
||
31 |
<p>Provides the classes which implement advanced dynamic |
|
32 |
loading. See the chapter <em>Advanced Dynamic Loading</em> in |
|
33 |
the <a href="#spec">JMX Specification</a>.</p> |
|
34 |
||
35 |
<p>An MBean that is of a subclass of {@link |
|
36 |
java.lang.ClassLoader} can be used as a class loader to create |
|
37 |
other MBeans via the method {@link |
|
38 |
javax.management.MBeanServer#createMBean(String, ObjectName, |
|
39 |
ObjectName, Object[], String[])}, and to instantiate arbitrary |
|
40 |
objects via the method {@link |
|
41 |
javax.management.MBeanServer#instantiate(String, ObjectName, |
|
42 |
Object[], String[])}. The {@link |
|
43 |
javax.management.loading.MLet MLet} class is an example of |
|
44 |
such an MBean. It is a {@link java.net.URLClassLoader |
|
45 |
URLClassLoader}, so the list of URLs to load classes from can |
|
46 |
be configured.</p> |
|
47 |
||
48 |
<p>Additionally, an <code>MLet</code> can read a configuration |
|
49 |
file that specifies a set of MBeans to be registered in the same |
|
50 |
MBean Server as the <code>MLet</code>.</p> |
|
51 |
||
52 |
<p>Every MBean Server has a <em>class loader repository</em> |
|
53 |
containing all MBeans registered in that MBean Server that |
|
54 |
are of a subclass of {@link java.lang.ClassLoader}. The class |
|
55 |
loader repository is used by the forms of the |
|
56 |
<code>createMBean</code> and <code>instantiate</code> methods |
|
57 |
in the {@link javax.management.MBeanServer MBeanServer} |
|
58 |
interface that do not have an explicit loader parameter. It |
|
59 |
is also used by the <code>MLet</code> class when it does not |
|
60 |
find a class in its own set of URLs.</p> |
|
61 |
||
62 |
<p>If an MBean implements the interface {@link |
|
63 |
javax.management.loading.PrivateClassLoader PrivateClassLoader}, |
|
64 |
then it is not added to the class loader repository. The class |
|
65 |
{@link javax.management.loading.PrivateMLet PrivateMLet} is a |
|
66 |
subclass of <code>MLet</code> that implements |
|
67 |
<code>PrivateClassLoader</code>.</p> |
|
68 |
||
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 | 72 |
|
73 |
@since 1.5 |
|
74 |
</BODY> |
|
75 |
</HTML> |