author | dfuchs |
Thu, 31 Jul 2008 12:41:35 +0200 | |
changeset 1002 | 1e6a1b77f22a |
parent 834 | dc74d4ddc28e |
child 1004 | 5ba8217eb504 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
715 | 2 |
* Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Sun designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
* have any questions. |
|
24 |
*/ |
|
25 |
||
26 |
package javax.management; |
|
27 |
||
28 |
||
29 |
// java import |
|
30 |
import java.util.Set; |
|
31 |
import java.io.ObjectInputStream; |
|
32 |
||
33 |
// RI import |
|
34 |
import javax.management.loading.ClassLoaderRepository; |
|
35 |
||
36 |
/** |
|
37 |
* <p>This is the interface for MBean manipulation on the agent |
|
38 |
* side. It contains the methods necessary for the creation, |
|
39 |
* registration, and deletion of MBeans as well as the access methods |
|
40 |
* for registered MBeans. This is the core component of the JMX |
|
41 |
* infrastructure.</p> |
|
42 |
* |
|
43 |
* <p>User code does not usually implement this interface. Instead, |
|
44 |
* an object that implements this interface is obtained with one of |
|
45 |
* the methods in the {@link MBeanServerFactory} class.</p> |
|
46 |
* |
|
47 |
* <p>Every MBean which is added to the MBean server becomes |
|
48 |
* manageable: its attributes and operations become remotely |
|
49 |
* accessible through the connectors/adaptors connected to that MBean |
|
50 |
* server. A Java object cannot be registered in the MBean server |
|
51 |
* unless it is a JMX compliant MBean.</p> |
|
52 |
* |
|
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
53 |
* <p id="notif">When an MBean is registered or unregistered in the MBean server |
2 | 54 |
* a {@link javax.management.MBeanServerNotification |
55 |
* MBeanServerNotification} Notification is emitted. To register an |
|
56 |
* object as listener to MBeanServerNotifications you should call the |
|
57 |
* MBean server method {@link #addNotificationListener |
|
58 |
* addNotificationListener} with <CODE>ObjectName</CODE> the |
|
59 |
* <CODE>ObjectName</CODE> of the {@link |
|
60 |
* javax.management.MBeanServerDelegate MBeanServerDelegate}. This |
|
61 |
* <CODE>ObjectName</CODE> is: <BR> |
|
62 |
* <CODE>JMImplementation:type=MBeanServerDelegate</CODE>.</p> |
|
63 |
* |
|
833
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
64 |
* <p id="security">An object obtained from the {@link |
2 | 65 |
* MBeanServerFactory#createMBeanServer(String) createMBeanServer} or |
66 |
* {@link MBeanServerFactory#newMBeanServer(String) newMBeanServer} |
|
67 |
* methods of the {@link MBeanServerFactory} class applies security |
|
68 |
* checks to its methods, as follows.</p> |
|
69 |
* |
|
70 |
* <p>First, if there is no security manager ({@link |
|
71 |
* System#getSecurityManager()} is null), then an implementation of |
|
72 |
* this interface is free not to make any checks.</p> |
|
73 |
* |
|
74 |
* <p>Assuming that there is a security manager, or that the |
|
75 |
* implementation chooses to make checks anyway, the checks are made |
|
76 |
* as detailed below. In what follows, <code>className</code> is the |
|
77 |
* string returned by {@link MBeanInfo#getClassName()} for the target |
|
78 |
* MBean.</p> |
|
79 |
* |
|
80 |
* <p>If a security check fails, the method throws {@link |
|
81 |
* SecurityException}.</p> |
|
82 |
* |
|
83 |
* <p>For methods that can throw {@link InstanceNotFoundException}, |
|
84 |
* this exception is thrown for a non-existent MBean, regardless of |
|
85 |
* permissions. This is because a non-existent MBean has no |
|
86 |
* <code>className</code>.</p> |
|
87 |
* |
|
88 |
* <ul> |
|
89 |
* |
|
90 |
* <li><p>For the {@link #invoke invoke} method, the caller's |
|
91 |
* permissions must imply {@link |
|
92 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
93 |
* MBeanPermission(className, operationName, name, "invoke")}.</p> |
|
94 |
* |
|
95 |
* <li><p>For the {@link #getAttribute getAttribute} method, the |
|
96 |
* caller's permissions must imply {@link |
|
97 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
98 |
* MBeanPermission(className, attribute, name, "getAttribute")}.</p> |
|
99 |
* |
|
100 |
* <li><p>For the {@link #getAttributes getAttributes} method, the |
|
101 |
* caller's permissions must imply {@link |
|
102 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
103 |
* MBeanPermission(className, null, name, "getAttribute")}. |
|
104 |
* Additionally, for each attribute <em>a</em> in the {@link |
|
105 |
* AttributeList}, if the caller's permissions do not imply {@link |
|
106 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
107 |
* MBeanPermission(className, <em>a</em>, name, "getAttribute")}, the |
|
108 |
* MBean server will behave as if that attribute had not been in the |
|
109 |
* supplied list.</p> |
|
110 |
* |
|
111 |
* <li><p>For the {@link #setAttribute setAttribute} method, the |
|
112 |
* caller's permissions must imply {@link |
|
113 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
114 |
* MBeanPermission(className, attrName, name, "setAttribute")}, where |
|
115 |
* <code>attrName</code> is {@link Attribute#getName() |
|
116 |
* attribute.getName()}.</p> |
|
117 |
* |
|
118 |
* <li><p>For the {@link #setAttributes setAttributes} method, the |
|
119 |
* caller's permissions must imply {@link |
|
120 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
121 |
* MBeanPermission(className, null, name, "setAttribute")}. |
|
122 |
* Additionally, for each attribute <em>a</em> in the {@link |
|
123 |
* AttributeList}, if the caller's permissions do not imply {@link |
|
124 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
125 |
* MBeanPermission(className, <em>a</em>, name, "setAttribute")}, the |
|
126 |
* MBean server will behave as if that attribute had not been in the |
|
127 |
* supplied list.</p> |
|
128 |
* |
|
129 |
* <li><p>For the <code>addNotificationListener</code> methods, |
|
130 |
* the caller's permissions must imply {@link |
|
131 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
132 |
* MBeanPermission(className, null, name, |
|
133 |
* "addNotificationListener")}.</p> |
|
134 |
* |
|
135 |
* <li><p>For the <code>removeNotificationListener</code> methods, |
|
136 |
* the caller's permissions must imply {@link |
|
137 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
138 |
* MBeanPermission(className, null, name, |
|
139 |
* "removeNotificationListener")}.</p> |
|
140 |
* |
|
141 |
* <li><p>For the {@link #getMBeanInfo getMBeanInfo} method, the |
|
142 |
* caller's permissions must imply {@link |
|
143 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
144 |
* MBeanPermission(className, null, name, "getMBeanInfo")}.</p> |
|
145 |
* |
|
146 |
* <li><p>For the {@link #getObjectInstance getObjectInstance} method, |
|
147 |
* the caller's permissions must imply {@link |
|
148 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
149 |
* MBeanPermission(className, null, name, "getObjectInstance")}.</p> |
|
150 |
* |
|
151 |
* <li><p>For the {@link #isInstanceOf isInstanceOf} method, the |
|
152 |
* caller's permissions must imply {@link |
|
153 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
154 |
* MBeanPermission(className, null, name, "isInstanceOf")}.</p> |
|
155 |
* |
|
156 |
* <li><p>For the {@link #queryMBeans queryMBeans} method, the |
|
157 |
* caller's permissions must imply {@link |
|
158 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
159 |
* MBeanPermission(null, null, name, "queryMBeans")}. |
|
160 |
* Additionally, for each MBean that matches <code>name</code>, |
|
161 |
* if the caller's permissions do not imply {@link |
|
162 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
163 |
* MBeanPermission(className, null, name, "queryMBeans")}, the |
|
164 |
* MBean server will behave as if that MBean did not exist.</p> |
|
165 |
* |
|
166 |
* <p>Certain query elements perform operations on the MBean server. |
|
167 |
* If the caller does not have the required permissions for a given |
|
168 |
* MBean, that MBean will not be included in the result of the query. |
|
169 |
* The standard query elements that are affected are {@link |
|
170 |
* Query#attr(String)}, {@link Query#attr(String,String)}, and {@link |
|
171 |
* Query#classattr()}.</p> |
|
172 |
* |
|
173 |
* <li><p>For the {@link #queryNames queryNames} method, the checks |
|
174 |
* are the same as for <code>queryMBeans</code> except that |
|
175 |
* <code>"queryNames"</code> is used instead of |
|
176 |
* <code>"queryMBeans"</code> in the <code>MBeanPermission</code> |
|
177 |
* objects. Note that a <code>"queryMBeans"</code> permission implies |
|
178 |
* the corresponding <code>"queryNames"</code> permission.</p> |
|
179 |
* |
|
180 |
* <li><p>For the {@link #getDomains getDomains} method, the caller's |
|
181 |
* permissions must imply {@link |
|
182 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
183 |
* MBeanPermission(null, null, name, "getDomains")}. Additionally, |
|
184 |
* for each domain <var>d</var> in the returned array, if the caller's |
|
185 |
* permissions do not imply {@link |
|
186 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
187 |
* MBeanPermission(null, null, new ObjectName("<var>d</var>:x=x"), |
|
188 |
* "getDomains")}, the domain is eliminated from the array. Here, |
|
189 |
* <code>x=x</code> is any <var>key=value</var> pair, needed to |
|
190 |
* satisfy ObjectName's constructor but not otherwise relevant.</p> |
|
191 |
* |
|
192 |
* <li><p>For the {@link #getClassLoader getClassLoader} method, the |
|
193 |
* caller's permissions must imply {@link |
|
194 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
195 |
* MBeanPermission(className, null, loaderName, |
|
196 |
* "getClassLoader")}.</p> |
|
197 |
* |
|
198 |
* <li><p>For the {@link #getClassLoaderFor getClassLoaderFor} method, |
|
199 |
* the caller's permissions must imply {@link |
|
200 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
201 |
* MBeanPermission(className, null, mbeanName, |
|
202 |
* "getClassLoaderFor")}.</p> |
|
203 |
* |
|
204 |
* <li><p>For the {@link #getClassLoaderRepository |
|
205 |
* getClassLoaderRepository} method, the caller's permissions must |
|
206 |
* imply {@link |
|
207 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
208 |
* MBeanPermission(null, null, null, "getClassLoaderRepository")}.</p> |
|
209 |
* |
|
210 |
* <li><p>For the deprecated <code>deserialize</code> methods, the |
|
211 |
* required permissions are the same as for the methods that replace |
|
212 |
* them.</p> |
|
213 |
* |
|
214 |
* <li><p>For the <code>instantiate</code> methods, the caller's |
|
215 |
* permissions must imply {@link |
|
216 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
217 |
* MBeanPermission(className, null, null, "instantiate")}.</p> |
|
218 |
* |
|
219 |
* <li><p>For the {@link #registerMBean registerMBean} method, the |
|
220 |
* caller's permissions must imply {@link |
|
221 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
222 |
* MBeanPermission(className, null, name, "registerMBean")}. Here |
|
223 |
* <code>className</code> is the string returned by {@link |
|
224 |
* MBeanInfo#getClassName()} for an object of this class. |
|
225 |
* |
|
226 |
* <p>If the <code>MBeanPermission</code> check succeeds, the MBean's |
|
227 |
* class is validated by checking that its {@link |
|
228 |
* java.security.ProtectionDomain ProtectionDomain} implies {@link |
|
229 |
* MBeanTrustPermission#MBeanTrustPermission(String) |
|
230 |
* MBeanTrustPermission("register")}.</p> |
|
231 |
* |
|
232 |
* <p>Finally, if the <code>name</code> argument is null, another |
|
233 |
* <code>MBeanPermission</code> check is made using the |
|
234 |
* <code>ObjectName</code> returned by {@link |
|
235 |
* MBeanRegistration#preRegister MBeanRegistration.preRegister}.</p> |
|
236 |
* |
|
237 |
* <li><p>For the <code>createMBean</code> methods, the caller's |
|
238 |
* permissions must imply the permissions needed by the equivalent |
|
239 |
* <code>instantiate</code> followed by |
|
240 |
* <code>registerMBean</code>.</p> |
|
241 |
* |
|
242 |
* <li><p>For the {@link #unregisterMBean unregisterMBean} method, |
|
243 |
* the caller's permissions must imply {@link |
|
244 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
245 |
* MBeanPermission(className, null, name, "unregisterMBean")}.</p> |
|
246 |
* |
|
247 |
* </ul> |
|
248 |
* |
|
249 |
* @since 1.5 |
|
250 |
*/ |
|
251 |
||
252 |
/* DELETED: |
|
253 |
* |
|
254 |
* <li><p>For the {@link #isRegistered isRegistered} method, the |
|
255 |
* caller's permissions must imply {@link |
|
256 |
* MBeanPermission#MBeanPermission(String,String,ObjectName,String) |
|
257 |
* MBeanPermission(null, null, name, "isRegistered")}.</p> |
|
258 |
*/ |
|
259 |
public interface MBeanServer extends MBeanServerConnection { |
|
260 |
||
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
261 |
/** |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
262 |
* {@inheritDoc} |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
263 |
* <p>If this method successfully creates an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
264 |
* is sent as described <a href="#notif">above</a>.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
265 |
*/ |
2 | 266 |
public ObjectInstance createMBean(String className, ObjectName name) |
267 |
throws ReflectionException, InstanceAlreadyExistsException, |
|
268 |
MBeanRegistrationException, MBeanException, |
|
269 |
NotCompliantMBeanException; |
|
270 |
||
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
271 |
/** |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
272 |
* {@inheritDoc} |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
273 |
* <p>If this method successfully creates an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
274 |
* is sent as described <a href="#notif">above</a>.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
275 |
*/ |
2 | 276 |
public ObjectInstance createMBean(String className, ObjectName name, |
277 |
ObjectName loaderName) |
|
278 |
throws ReflectionException, InstanceAlreadyExistsException, |
|
279 |
MBeanRegistrationException, MBeanException, |
|
280 |
NotCompliantMBeanException, InstanceNotFoundException; |
|
281 |
||
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
282 |
/** |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
283 |
* {@inheritDoc} |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
284 |
* <p>If this method successfully creates an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
285 |
* is sent as described <a href="#notif">above</a>.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
286 |
*/ |
2 | 287 |
public ObjectInstance createMBean(String className, ObjectName name, |
288 |
Object params[], String signature[]) |
|
289 |
throws ReflectionException, InstanceAlreadyExistsException, |
|
290 |
MBeanRegistrationException, MBeanException, |
|
291 |
NotCompliantMBeanException; |
|
292 |
||
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
293 |
/** |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
294 |
* {@inheritDoc} |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
295 |
* <p>If this method successfully creates an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
296 |
* is sent as described <a href="#notif">above</a>.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
297 |
*/ |
2 | 298 |
public ObjectInstance createMBean(String className, ObjectName name, |
299 |
ObjectName loaderName, Object params[], |
|
300 |
String signature[]) |
|
301 |
throws ReflectionException, InstanceAlreadyExistsException, |
|
302 |
MBeanRegistrationException, MBeanException, |
|
303 |
NotCompliantMBeanException, InstanceNotFoundException; |
|
304 |
||
305 |
/** |
|
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
306 |
* <p>Registers a pre-existing object as an MBean with the MBean |
2 | 307 |
* server. If the object name given is null, the MBean must |
308 |
* provide its own name by implementing the {@link |
|
309 |
* javax.management.MBeanRegistration MBeanRegistration} interface |
|
310 |
* and returning the name from the {@link |
|
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
311 |
* MBeanRegistration#preRegister preRegister} method.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
312 |
* |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
313 |
* <p>If this method successfully registers an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
314 |
* is sent as described <a href="#notif">above</a>.</p> |
2 | 315 |
* |
316 |
* @param object The MBean to be registered as an MBean. |
|
317 |
* @param name The object name of the MBean. May be null. |
|
318 |
* |
|
319 |
* @return An <CODE>ObjectInstance</CODE>, containing the |
|
320 |
* <CODE>ObjectName</CODE> and the Java class name of the newly |
|
321 |
* registered MBean. If the contained <code>ObjectName</code> |
|
322 |
* is <code>n</code>, the contained Java class name is |
|
323 |
* <code>{@link #getMBeanInfo getMBeanInfo(n)}.getClassName()</code>. |
|
324 |
* |
|
325 |
* @exception InstanceAlreadyExistsException The MBean is already |
|
326 |
* under the control of the MBean server. |
|
327 |
* @exception MBeanRegistrationException The |
|
328 |
* <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> |
|
329 |
* interface) method of the MBean has thrown an exception. The |
|
330 |
* MBean will not be registered. |
|
1002
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
331 |
* @exception RuntimeMBeanException If the <CODE>postRegister</CODE> |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
332 |
* (<CODE>MBeanRegistration</CODE> interface) method of the MBean throws a |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
333 |
* <CODE>RuntimeException</CODE>, the <CODE>registerMBean<CODE> method will |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
334 |
* throw a <CODE>RuntimeMBeanException</CODE>, although the MBean |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
335 |
* registration succeeded. In such a case, the MBean will be actually |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
336 |
* registered even though the <CODE>registerMBean<CODE> method |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
337 |
* threw an exception. Note that <CODE>RuntimeMBeanException</CODE> can |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
338 |
* also be thrown by <CODE>preRegister</CODE>, in which case the MBean |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
339 |
* will not be registered. |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
340 |
* @exception RuntimeErrorException If the <CODE>postRegister</CODE> |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
341 |
* (<CODE>MBeanRegistration</CODE> interface) method of the MBean throws an |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
342 |
* <CODE>Error</CODE>, the <CODE>registerMBean<CODE> method will |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
343 |
* throw a <CODE>RuntimeErrorException</CODE>, although the MBean |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
344 |
* registration succeeded. In such a case, the MBean will be actually |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
345 |
* registered even though the <CODE>registerMBean<CODE> method |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
346 |
* threw an exception. Note that <CODE>RuntimeErrorException</CODE> can |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
347 |
* also be thrown by <CODE>preRegister</CODE>, in which case the MBean |
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
348 |
* will not be registered. |
2 | 349 |
* @exception NotCompliantMBeanException This object is not a JMX |
350 |
* compliant MBean |
|
351 |
* @exception RuntimeOperationsException Wraps a |
|
352 |
* <CODE>java.lang.IllegalArgumentException</CODE>: The object |
|
353 |
* passed in parameter is null or no object name is specified. |
|
1002
1e6a1b77f22a
6730926: Document that create/registerMBean can throw RuntimeMBeanException from postRegister
dfuchs
parents:
834
diff
changeset
|
354 |
* @see javax.management.MBeanRegistration |
2 | 355 |
*/ |
356 |
public ObjectInstance registerMBean(Object object, ObjectName name) |
|
357 |
throws InstanceAlreadyExistsException, MBeanRegistrationException, |
|
358 |
NotCompliantMBeanException; |
|
359 |
||
267
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
360 |
/** |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
361 |
* {@inheritDoc} |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
362 |
* |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
363 |
* <p>If this method successfully unregisters an MBean, a notification |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
364 |
* is sent as described <a href="#notif">above</a>.</p> |
d436a8afbbd3
6649542: Document explicitly in registerMBean etc that MBeanServerNotification is emitted
emcmanus
parents:
2
diff
changeset
|
365 |
*/ |
2 | 366 |
public void unregisterMBean(ObjectName name) |
367 |
throws InstanceNotFoundException, MBeanRegistrationException; |
|
368 |
||
369 |
// doc comment inherited from MBeanServerConnection |
|
370 |
public ObjectInstance getObjectInstance(ObjectName name) |
|
371 |
throws InstanceNotFoundException; |
|
372 |
||
373 |
// doc comment inherited from MBeanServerConnection |
|
374 |
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query); |
|
375 |
||
376 |
// doc comment inherited from MBeanServerConnection |
|
377 |
public Set<ObjectName> queryNames(ObjectName name, QueryExp query); |
|
378 |
||
379 |
// doc comment inherited from MBeanServerConnection |
|
380 |
public boolean isRegistered(ObjectName name); |
|
381 |
||
382 |
/** |
|
383 |
* Returns the number of MBeans registered in the MBean server. |
|
384 |
* |
|
385 |
* @return the number of registered MBeans, wrapped in an Integer. |
|
386 |
* If the caller's permissions are restricted, this number may |
|
387 |
* be greater than the number of MBeans the caller can access. |
|
388 |
*/ |
|
389 |
public Integer getMBeanCount(); |
|
390 |
||
391 |
// doc comment inherited from MBeanServerConnection |
|
392 |
public Object getAttribute(ObjectName name, String attribute) |
|
393 |
throws MBeanException, AttributeNotFoundException, |
|
394 |
InstanceNotFoundException, ReflectionException; |
|
395 |
||
396 |
// doc comment inherited from MBeanServerConnection |
|
397 |
public AttributeList getAttributes(ObjectName name, String[] attributes) |
|
398 |
throws InstanceNotFoundException, ReflectionException; |
|
399 |
||
400 |
// doc comment inherited from MBeanServerConnection |
|
401 |
public void setAttribute(ObjectName name, Attribute attribute) |
|
402 |
throws InstanceNotFoundException, AttributeNotFoundException, |
|
403 |
InvalidAttributeValueException, MBeanException, |
|
404 |
ReflectionException; |
|
405 |
||
406 |
// doc comment inherited from MBeanServerConnection |
|
407 |
public AttributeList setAttributes(ObjectName name, |
|
408 |
AttributeList attributes) |
|
409 |
throws InstanceNotFoundException, ReflectionException; |
|
410 |
||
411 |
// doc comment inherited from MBeanServerConnection |
|
412 |
public Object invoke(ObjectName name, String operationName, |
|
413 |
Object params[], String signature[]) |
|
414 |
throws InstanceNotFoundException, MBeanException, |
|
415 |
ReflectionException; |
|
416 |
||
417 |
// doc comment inherited from MBeanServerConnection |
|
418 |
public String getDefaultDomain(); |
|
419 |
||
420 |
// doc comment inherited from MBeanServerConnection |
|
421 |
public String[] getDomains(); |
|
422 |
||
423 |
// doc comment inherited from MBeanServerConnection |
|
424 |
public void addNotificationListener(ObjectName name, |
|
425 |
NotificationListener listener, |
|
426 |
NotificationFilter filter, |
|
427 |
Object handback) |
|
428 |
throws InstanceNotFoundException; |
|
429 |
||
430 |
// doc comment inherited from MBeanServerConnection |
|
431 |
public void addNotificationListener(ObjectName name, |
|
432 |
ObjectName listener, |
|
433 |
NotificationFilter filter, |
|
434 |
Object handback) |
|
435 |
throws InstanceNotFoundException; |
|
436 |
||
437 |
// doc comment inherited from MBeanServerConnection |
|
438 |
public void removeNotificationListener(ObjectName name, |
|
439 |
ObjectName listener) |
|
440 |
throws InstanceNotFoundException, ListenerNotFoundException; |
|
441 |
||
442 |
// doc comment inherited from MBeanServerConnection |
|
443 |
public void removeNotificationListener(ObjectName name, |
|
444 |
ObjectName listener, |
|
445 |
NotificationFilter filter, |
|
446 |
Object handback) |
|
447 |
throws InstanceNotFoundException, ListenerNotFoundException; |
|
448 |
||
449 |
// doc comment inherited from MBeanServerConnection |
|
450 |
public void removeNotificationListener(ObjectName name, |
|
451 |
NotificationListener listener) |
|
452 |
throws InstanceNotFoundException, ListenerNotFoundException; |
|
453 |
||
454 |
// doc comment inherited from MBeanServerConnection |
|
455 |
public void removeNotificationListener(ObjectName name, |
|
456 |
NotificationListener listener, |
|
457 |
NotificationFilter filter, |
|
458 |
Object handback) |
|
459 |
throws InstanceNotFoundException, ListenerNotFoundException; |
|
460 |
||
461 |
// doc comment inherited from MBeanServerConnection |
|
462 |
public MBeanInfo getMBeanInfo(ObjectName name) |
|
463 |
throws InstanceNotFoundException, IntrospectionException, |
|
464 |
ReflectionException; |
|
465 |
||
466 |
||
467 |
// doc comment inherited from MBeanServerConnection |
|
468 |
public boolean isInstanceOf(ObjectName name, String className) |
|
469 |
throws InstanceNotFoundException; |
|
470 |
||
471 |
/** |
|
472 |
* <p>Instantiates an object using the list of all class loaders |
|
473 |
* registered in the MBean server's {@link |
|
474 |
* javax.management.loading.ClassLoaderRepository Class Loader |
|
475 |
* Repository}. The object's class should have a public |
|
476 |
* constructor. This method returns a reference to the newly |
|
477 |
* created object. The newly created object is not registered in |
|
478 |
* the MBean server.</p> |
|
479 |
* |
|
480 |
* <p>This method is equivalent to {@link |
|
481 |
* #instantiate(String,Object[],String[]) |
|
482 |
* instantiate(className, (Object[]) null, (String[]) null)}.</p> |
|
483 |
* |
|
484 |
* @param className The class name of the object to be instantiated. |
|
485 |
* |
|
486 |
* @return The newly instantiated object. |
|
487 |
* |
|
488 |
* @exception ReflectionException Wraps a |
|
489 |
* <CODE>java.lang.ClassNotFoundException</CODE> or the |
|
490 |
* <CODE>java.lang.Exception</CODE> that occurred when trying to |
|
491 |
* invoke the object's constructor. |
|
492 |
* @exception MBeanException The constructor of the object has |
|
493 |
* thrown an exception |
|
494 |
* @exception RuntimeOperationsException Wraps a |
|
495 |
* <CODE>java.lang.IllegalArgumentException</CODE>: The className |
|
496 |
* passed in parameter is null. |
|
497 |
*/ |
|
498 |
public Object instantiate(String className) |
|
499 |
throws ReflectionException, MBeanException; |
|
500 |
||
501 |
||
502 |
/** |
|
503 |
* <p>Instantiates an object using the class Loader specified by its |
|
504 |
* <CODE>ObjectName</CODE>. If the loader name is null, the |
|
505 |
* ClassLoader that loaded the MBean Server will be used. The |
|
506 |
* object's class should have a public constructor. This method |
|
507 |
* returns a reference to the newly created object. The newly |
|
508 |
* created object is not registered in the MBean server.</p> |
|
509 |
* |
|
510 |
* <p>This method is equivalent to {@link |
|
511 |
* #instantiate(String,ObjectName,Object[],String[]) |
|
512 |
* instantiate(className, loaderName, (Object[]) null, (String[]) |
|
513 |
* null)}.</p> |
|
514 |
* |
|
515 |
* @param className The class name of the MBean to be instantiated. |
|
516 |
* @param loaderName The object name of the class loader to be used. |
|
517 |
* |
|
518 |
* @return The newly instantiated object. |
|
519 |
* |
|
520 |
* @exception ReflectionException Wraps a |
|
521 |
* <CODE>java.lang.ClassNotFoundException</CODE> or the |
|
522 |
* <CODE>java.lang.Exception</CODE> that occurred when trying to |
|
523 |
* invoke the object's constructor. |
|
524 |
* @exception MBeanException The constructor of the object has |
|
525 |
* thrown an exception. |
|
526 |
* @exception InstanceNotFoundException The specified class loader |
|
527 |
* is not registered in the MBeanServer. |
|
528 |
* @exception RuntimeOperationsException Wraps a |
|
529 |
* <CODE>java.lang.IllegalArgumentException</CODE>: The className |
|
530 |
* passed in parameter is null. |
|
531 |
*/ |
|
532 |
public Object instantiate(String className, ObjectName loaderName) |
|
533 |
throws ReflectionException, MBeanException, |
|
534 |
InstanceNotFoundException; |
|
535 |
||
536 |
/** |
|
537 |
* <p>Instantiates an object using the list of all class loaders |
|
538 |
* registered in the MBean server {@link |
|
539 |
* javax.management.loading.ClassLoaderRepository Class Loader |
|
540 |
* Repository}. The object's class should have a public |
|
541 |
* constructor. The call returns a reference to the newly created |
|
542 |
* object. The newly created object is not registered in the |
|
543 |
* MBean server.</p> |
|
544 |
* |
|
545 |
* @param className The class name of the object to be instantiated. |
|
546 |
* @param params An array containing the parameters of the |
|
547 |
* constructor to be invoked. |
|
548 |
* @param signature An array containing the signature of the |
|
549 |
* constructor to be invoked. |
|
550 |
* |
|
551 |
* @return The newly instantiated object. |
|
552 |
* |
|
553 |
* @exception ReflectionException Wraps a |
|
554 |
* <CODE>java.lang.ClassNotFoundException</CODE> or the |
|
555 |
* <CODE>java.lang.Exception</CODE> that occurred when trying to |
|
556 |
* invoke the object's constructor. |
|
557 |
* @exception MBeanException The constructor of the object has |
|
558 |
* thrown an exception |
|
559 |
* @exception RuntimeOperationsException Wraps a |
|
560 |
* <CODE>java.lang.IllegalArgumentException</CODE>: The className |
|
561 |
* passed in parameter is null. |
|
562 |
*/ |
|
563 |
public Object instantiate(String className, Object params[], |
|
564 |
String signature[]) |
|
565 |
throws ReflectionException, MBeanException; |
|
566 |
||
567 |
/** |
|
568 |
* <p>Instantiates an object. The class loader to be used is |
|
569 |
* identified by its object name. If the object name of the loader |
|
570 |
* is null, the ClassLoader that loaded the MBean server will be |
|
571 |
* used. The object's class should have a public constructor. |
|
572 |
* The call returns a reference to the newly created object. The |
|
573 |
* newly created object is not registered in the MBean server.</p> |
|
574 |
* |
|
575 |
* @param className The class name of the object to be instantiated. |
|
576 |
* @param params An array containing the parameters of the |
|
577 |
* constructor to be invoked. |
|
578 |
* @param signature An array containing the signature of the |
|
579 |
* constructor to be invoked. |
|
580 |
* @param loaderName The object name of the class loader to be used. |
|
581 |
* |
|
582 |
* @return The newly instantiated object. |
|
583 |
* |
|
584 |
* @exception ReflectionException Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or the <CODE>java.lang.Exception</CODE> that |
|
585 |
* occurred when trying to invoke the object's constructor. |
|
586 |
* @exception MBeanException The constructor of the object has |
|
587 |
* thrown an exception |
|
588 |
* @exception InstanceNotFoundException The specified class loader |
|
589 |
* is not registered in the MBean server. |
|
590 |
* @exception RuntimeOperationsException Wraps a |
|
591 |
* <CODE>java.lang.IllegalArgumentException</CODE>: The className |
|
592 |
* passed in parameter is null. |
|
593 |
*/ |
|
594 |
public Object instantiate(String className, ObjectName loaderName, |
|
595 |
Object params[], String signature[]) |
|
596 |
throws ReflectionException, MBeanException, |
|
597 |
InstanceNotFoundException; |
|
598 |
||
599 |
/** |
|
600 |
* <p>De-serializes a byte array in the context of the class loader |
|
601 |
* of an MBean.</p> |
|
602 |
* |
|
603 |
* @param name The name of the MBean whose class loader should be |
|
604 |
* used for the de-serialization. |
|
605 |
* @param data The byte array to be de-sererialized. |
|
606 |
* |
|
607 |
* @return The de-serialized object stream. |
|
608 |
* |
|
609 |
* @exception InstanceNotFoundException The MBean specified is not |
|
610 |
* found. |
|
611 |
* @exception OperationsException Any of the usual Input/Output |
|
612 |
* related exceptions. |
|
613 |
* |
|
614 |
* @deprecated Use {@link #getClassLoaderFor getClassLoaderFor} to |
|
615 |
* obtain the appropriate class loader for deserialization. |
|
616 |
*/ |
|
617 |
@Deprecated |
|
618 |
public ObjectInputStream deserialize(ObjectName name, byte[] data) |
|
619 |
throws InstanceNotFoundException, OperationsException; |
|
620 |
||
621 |
||
622 |
/** |
|
623 |
* <p>De-serializes a byte array in the context of a given MBean |
|
624 |
* class loader. The class loader is found by loading the class |
|
625 |
* <code>className</code> through the {@link |
|
626 |
* javax.management.loading.ClassLoaderRepository Class Loader |
|
627 |
* Repository}. The resultant class's class loader is the one to |
|
628 |
* use. |
|
629 |
* |
|
630 |
* @param className The name of the class whose class loader should be |
|
631 |
* used for the de-serialization. |
|
632 |
* @param data The byte array to be de-sererialized. |
|
633 |
* |
|
634 |
* @return The de-serialized object stream. |
|
635 |
* |
|
636 |
* @exception OperationsException Any of the usual Input/Output |
|
637 |
* related exceptions. |
|
638 |
* @exception ReflectionException The specified class could not be |
|
639 |
* loaded by the class loader repository |
|
640 |
* |
|
641 |
* @deprecated Use {@link #getClassLoaderRepository} to obtain the |
|
642 |
* class loader repository and use it to deserialize. |
|
643 |
*/ |
|
644 |
@Deprecated |
|
645 |
public ObjectInputStream deserialize(String className, byte[] data) |
|
646 |
throws OperationsException, ReflectionException; |
|
647 |
||
648 |
||
649 |
/** |
|
650 |
* <p>De-serializes a byte array in the context of a given MBean |
|
651 |
* class loader. The class loader is the one that loaded the |
|
652 |
* class with name "className". The name of the class loader to |
|
653 |
* be used for loading the specified class is specified. If null, |
|
654 |
* the MBean Server's class loader will be used.</p> |
|
655 |
* |
|
656 |
* @param className The name of the class whose class loader should be |
|
657 |
* used for the de-serialization. |
|
658 |
* @param data The byte array to be de-sererialized. |
|
659 |
* @param loaderName The name of the class loader to be used for |
|
660 |
* loading the specified class. If null, the MBean Server's class |
|
661 |
* loader will be used. |
|
662 |
* |
|
663 |
* @return The de-serialized object stream. |
|
664 |
* |
|
665 |
* @exception InstanceNotFoundException The specified class loader |
|
666 |
* MBean is not found. |
|
667 |
* @exception OperationsException Any of the usual Input/Output |
|
668 |
* related exceptions. |
|
669 |
* @exception ReflectionException The specified class could not be |
|
670 |
* loaded by the specified class loader. |
|
671 |
* |
|
672 |
* @deprecated Use {@link #getClassLoader getClassLoader} to obtain |
|
673 |
* the class loader for deserialization. |
|
674 |
*/ |
|
675 |
@Deprecated |
|
676 |
public ObjectInputStream deserialize(String className, |
|
677 |
ObjectName loaderName, |
|
678 |
byte[] data) |
|
679 |
throws InstanceNotFoundException, OperationsException, |
|
680 |
ReflectionException; |
|
681 |
||
682 |
/** |
|
833
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
683 |
* <p>Return the {@link java.lang.ClassLoader} that was used for loading |
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
684 |
* the class of the named MBean. If the MBean implements the {@link |
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
685 |
* DynamicWrapperMBean} interface, then the returned value is the |
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
686 |
* result of the {@link DynamicWrapperMBean#getWrappedClassLoader()} |
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
687 |
* method.</p> |
2 | 688 |
* |
689 |
* @param mbeanName The ObjectName of the MBean. |
|
690 |
* |
|
691 |
* @return The ClassLoader used for that MBean. If <var>l</var> |
|
833
bfa2bef7517c
6323980: Annotations to simplify MBean development
emcmanus
parents:
267
diff
changeset
|
692 |
* is the value specified by the rules above, and <var>r</var> is the |
2 | 693 |
* returned value, then either: |
694 |
* |
|
695 |
* <ul> |
|
696 |
* <li><var>r</var> is identical to <var>l</var>; or |
|
697 |
* <li>the result of <var>r</var>{@link |
|
698 |
* ClassLoader#loadClass(String) .loadClass(<var>s</var>)} is the |
|
699 |
* same as <var>l</var>{@link ClassLoader#loadClass(String) |
|
700 |
* .loadClass(<var>s</var>)} for any string <var>s</var>. |
|
701 |
* </ul> |
|
702 |
* |
|
703 |
* What this means is that the ClassLoader may be wrapped in |
|
704 |
* another ClassLoader for security or other reasons. |
|
705 |
* |
|
706 |
* @exception InstanceNotFoundException if the named MBean is not found. |
|
707 |
* |
|
708 |
*/ |
|
709 |
public ClassLoader getClassLoaderFor(ObjectName mbeanName) |
|
710 |
throws InstanceNotFoundException; |
|
711 |
||
712 |
/** |
|
713 |
* <p>Return the named {@link java.lang.ClassLoader}.</p> |
|
714 |
* |
|
715 |
* @param loaderName The ObjectName of the ClassLoader. May be |
|
716 |
* null, in which case the MBean server's own ClassLoader is |
|
717 |
* returned. |
|
718 |
* |
|
719 |
* @return The named ClassLoader. If <var>l</var> is the actual |
|
720 |
* ClassLoader with that name, and <var>r</var> is the returned |
|
721 |
* value, then either: |
|
722 |
* |
|
723 |
* <ul> |
|
724 |
* <li><var>r</var> is identical to <var>l</var>; or |
|
725 |
* <li>the result of <var>r</var>{@link |
|
726 |
* ClassLoader#loadClass(String) .loadClass(<var>s</var>)} is the |
|
727 |
* same as <var>l</var>{@link ClassLoader#loadClass(String) |
|
728 |
* .loadClass(<var>s</var>)} for any string <var>s</var>. |
|
729 |
* </ul> |
|
730 |
* |
|
731 |
* What this means is that the ClassLoader may be wrapped in |
|
732 |
* another ClassLoader for security or other reasons. |
|
733 |
* |
|
734 |
* @exception InstanceNotFoundException if the named ClassLoader is |
|
735 |
* not found. |
|
736 |
* |
|
737 |
*/ |
|
738 |
public ClassLoader getClassLoader(ObjectName loaderName) |
|
739 |
throws InstanceNotFoundException; |
|
740 |
||
741 |
/** |
|
742 |
* <p>Return the ClassLoaderRepository for this MBeanServer. |
|
743 |
* @return The ClassLoaderRepository for this MBeanServer. |
|
744 |
* |
|
745 |
*/ |
|
746 |
public ClassLoaderRepository getClassLoaderRepository(); |
|
747 |
} |