⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 secureclassloaderrepository.java

📁 Mobile 应用程序使用 Java Micro Edition (Java ME) 平台
💻 JAVA
字号:
/* * @(#)SecureClassLoaderRepository.java	1.10 05/11/17 *  * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.jmx.mbeanserver;import javax.management.loading.ClassLoaderRepository;/**  * Fix security hole in ClassLoaderRepository. This class wraps * the actual ClassLoaderRepository implementation so that * only the methods from {@link javax.management.loading.ClassLoaderRepository} * can be accessed (read-only). * * @since 1.5 */final class SecureClassLoaderRepository     implements ClassLoaderRepository {    private final ClassLoaderRepository clr;    /**     * Creates a new secure ClassLoaderRepository wrapping an     * unsecure implementation.     * @param clr Unsecure {@link ClassLoaderRepository} implementation     *            to wrap.     **/    public SecureClassLoaderRepository(ClassLoaderRepository clr) {	this.clr=clr;    }    public final Class loadClass(String className) 	throws ClassNotFoundException {	return clr.loadClass(className);    }    public final Class loadClassWithout(ClassLoader loader,				  String className) 	throws ClassNotFoundException {	return clr.loadClassWithout(loader,className);    }    public final Class loadClassBefore(ClassLoader loader,				 String className) 	throws ClassNotFoundException {	return clr.loadClassBefore(loader,className);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -