325N/A * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * An MLet that is not added to the {@link ClassLoaderRepository}. 325N/A * This class acts exactly like its parent class, {@link MLet}, with 325N/A * one exception. When a PrivateMLet is registered in an MBean 325N/A * server, it is not added to that MBean server's {@link 325N/A * ClassLoaderRepository}. This is true because this class implements 325N/A * the interface {@link PrivateClassLoader}. 325N/A * Constructs a new PrivateMLet for the specified URLs using the 325N/A * default delegation parent ClassLoader. The URLs will be 325N/A * searched in the order specified for classes and resources 325N/A * after first searching in the parent class loader. 325N/A * @param urls The URLs from which to load classes and resources. 325N/A * @param delegateToCLR True if, when a class is not found in 325N/A * either the parent ClassLoader or the URLs, the MLet should delegate 325N/A * to its containing MBeanServer's {@link ClassLoaderRepository}. 325N/A * Constructs a new PrivateMLet for the given URLs. The URLs will 325N/A * be searched in the order specified for classes and resources 325N/A * after first searching in the specified parent class loader. 325N/A * The parent argument will be used as the parent class loader 325N/A * @param urls The URLs from which to load classes and resources. 325N/A * @param parent The parent class loader for delegation. 325N/A * @param delegateToCLR True if, when a class is not found in 325N/A * either the parent ClassLoader or the URLs, the MLet should delegate 325N/A * to its containing MBeanServer's {@link ClassLoaderRepository}. * Constructs a new PrivateMLet for the specified URLs, parent * class loader, and URLStreamHandlerFactory. The parent argument * will be used as the parent class loader for delegation. The * factory argument will be used as the stream handler factory to * obtain protocol handlers when creating new URLs. * @param urls The URLs from which to load classes and resources. * @param parent The parent class loader for delegation. * @param factory The URLStreamHandlerFactory to use when creating URLs. * @param delegateToCLR True if, when a class is not found in * either the parent ClassLoader or the URLs, the MLet should delegate * to its containing MBeanServer's {@link ClassLoaderRepository}.