KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > loading > PrivateMLet


1 /*
2  * @(#)PrivateMLet.java 1.12 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 javax.management.loading;
9
10 import java.net.URL JavaDoc;
11 import java.net.URLStreamHandlerFactory JavaDoc;
12
13 /**
14  * An MLet that is not added to the {@link ClassLoaderRepository}.
15  * This class acts exactly like its parent class, {@link MLet}, with
16  * one exception. When a PrivateMLet is registered in an MBean
17  * server, it is not added to that MBean server's {@link
18  * ClassLoaderRepository}. This is true because this class implements
19  * the interface {@link PrivateClassLoader}.
20  *
21  * @since 1.5
22  * @since.unbundled JMX 1.2
23  */

24 public class PrivateMLet extends MLet JavaDoc implements PrivateClassLoader JavaDoc {
25     private static final long serialVersionUID = 2503458973393711979L;
26
27     /**
28       * Constructs a new PrivateMLet for the specified URLs using the
29       * default delegation parent ClassLoader. The URLs will be
30       * searched in the order specified for classes and resources
31       * after first searching in the parent class loader.
32       *
33       * @param urls The URLs from which to load classes and resources.
34       * @param delegateToCLR True if, when a class is not found in
35       * either the parent ClassLoader or the URLs, the MLet should delegate
36       * to its containing MBeanServer's {@link ClassLoaderRepository}.
37       *
38       */

39     public PrivateMLet(URL JavaDoc[] urls, boolean delegateToCLR) {
40     super(urls, delegateToCLR);
41     }
42
43     /**
44       * Constructs a new PrivateMLet for the given URLs. The URLs will
45       * be searched in the order specified for classes and resources
46       * after first searching in the specified parent class loader.
47       * The parent argument will be used as the parent class loader
48       * for delegation. The factory argument will be used as the
49       * stream handler factory to obtain protocol handlers when
50       * creating new URLs.
51       *
52       * @param urls The URLs from which to load classes and resources.
53       * @param parent The parent class loader for delegation.
54       * @param delegateToCLR True if, when a class is not found in
55       * either the parent ClassLoader or the URLs, the MLet should delegate
56       * to its containing MBeanServer's {@link ClassLoaderRepository}.
57       *
58       */

59     public PrivateMLet(URL JavaDoc[] urls, ClassLoader JavaDoc parent, boolean delegateToCLR) {
60     super(urls, parent, delegateToCLR);
61     }
62
63     /**
64       * Constructs a new PrivateMLet for the specified URLs, parent
65       * class loader, and URLStreamHandlerFactory. The parent argument
66       * will be used as the parent class loader for delegation. The
67       * factory argument will be used as the stream handler factory to
68       * obtain protocol handlers when creating new URLs.
69       *
70       * @param urls The URLs from which to load classes and resources.
71       * @param parent The parent class loader for delegation.
72       * @param factory The URLStreamHandlerFactory to use when creating URLs.
73       * @param delegateToCLR True if, when a class is not found in
74       * either the parent ClassLoader or the URLs, the MLet should delegate
75       * to its containing MBeanServer's {@link ClassLoaderRepository}.
76       *
77       */

78     public PrivateMLet(URL JavaDoc[] urls,
79                ClassLoader JavaDoc parent,
80                URLStreamHandlerFactory JavaDoc factory,
81                boolean delegateToCLR) {
82     super(urls, parent, factory, delegateToCLR);
83     }
84 }
85
Popular Tags