KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > mbeanserver > ModifiableClassLoaderRepository


1 /*
2  * @(#)ModifiableClassLoaderRepository.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.jmx.mbeanserver;
9
10
11 // JMX import
12
import javax.management.ObjectName JavaDoc;
13 import javax.management.loading.ClassLoaderRepository JavaDoc;
14
15 /**
16  * This interface keeps the list of Class Loaders registered in the
17  * MBean Server.
18  * It provides the necessary methods to load classes using the
19  * registered Class Loaders, and to add/remove class loaders from the
20  * list.
21  *
22  * @since 1.5
23  * @since.unbundled JMX RI 1.2
24  */

25 public interface ModifiableClassLoaderRepository
26     extends ClassLoaderRepository JavaDoc {
27
28     /**
29      * Add an anonymous ClassLoader to the repository.
30      **/

31     public void addClassLoader(ClassLoader JavaDoc loader);
32
33     /**
34      * Remove the specified ClassLoader to the repository.
35      * The class loader may or may not be anonymous.
36      **/

37     public void removeClassLoader(ClassLoader JavaDoc loader);
38
39     /**
40      * Add a named ClassLoader to the repository.
41      **/

42     public void addClassLoader(ObjectName JavaDoc name, ClassLoader JavaDoc loader);
43
44     /**
45      * Remove a named ClassLoader from the repository.
46      **/

47     public void removeClassLoader(ObjectName JavaDoc name);
48
49     /**
50      * Get a named ClassLoader from the repository.
51      **/

52     public ClassLoader JavaDoc getClassLoader(ObjectName JavaDoc name);
53 }
54
Popular Tags