FileDocCategorySizeDatePackage
SecureClassLoaderRepository.javaAPI DocJava SE 5 API1437Fri Aug 26 14:55:00 BST 2005com.sun.jmx.mbeanserver

SecureClassLoaderRepository

public final class SecureClassLoaderRepository extends Object implements 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

Fields Summary
private final ClassLoaderRepository
clr
Constructors Summary
public SecureClassLoaderRepository(ClassLoaderRepository clr)
Creates a new secure ClassLoaderRepository wrapping an unsecure implementation.

param
clr Unsecure {@link ClassLoaderRepository} implementation to wrap.

	this.clr=clr;
    
Methods Summary
public final java.lang.ClassloadClass(java.lang.String className)

	return clr.loadClass(className);
    
public final java.lang.ClassloadClassBefore(java.lang.ClassLoader loader, java.lang.String className)

	return clr.loadClassBefore(loader,className);
    
public final java.lang.ClassloadClassWithout(java.lang.ClassLoader loader, java.lang.String className)

	return clr.loadClassWithout(loader,className);