public final class HidePackagesClassLoader extends URLClassLoader
URLClassLoader
that hides configurable packages. No class in one of those
packages or sub-packages are visible.Constructor and Description |
---|
HidePackagesClassLoader(String... hiddenPackages)
Create a new instance with the packages to hide.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
loadClass(String name,
boolean resolve) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public HidePackagesClassLoader(String... hiddenPackages)
hiddenPackages
- the packages to hideprotected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.