1 7 package com.sun.jmx.mbeanserver; 8 9 import javax.management.loading.ClassLoaderRepository ; 10 11 19 final class SecureClassLoaderRepository 20 implements ClassLoaderRepository { 21 22 private final ClassLoaderRepository clr; 23 29 public SecureClassLoaderRepository(ClassLoaderRepository clr) { 30 this.clr=clr; 31 } 32 public final Class loadClass(String className) 33 throws ClassNotFoundException { 34 return clr.loadClass(className); 35 } 36 public final Class loadClassWithout(ClassLoader loader, 37 String className) 38 throws ClassNotFoundException { 39 return clr.loadClassWithout(loader,className); 40 } 41 public final Class loadClassBefore(ClassLoader loader, 42 String className) 43 throws ClassNotFoundException { 44 return clr.loadClassBefore(loader,className); 45 } 46 } 47 | Popular Tags |