FilteredClassLoader

constructor(hiddenClasses: Array<Class<out Any>>)

Create a FilteredClassLoader that hides the given classes.

Parameters

hiddenClasses

the classes to hide


constructor(parent: ClassLoader, hiddenClasses: Array<Class<out Any>>)

Create a FilteredClassLoader with the given parent that hides the given classes.

Parameters

parent

the parent class loader

hiddenClasses

the classes to hide


constructor(hiddenPackages: Array<String>)

Create a FilteredClassLoader that hides classes from the given packages.

Parameters

hiddenPackages

the packages to hide


constructor(hiddenResources: Array<ClassPathResource>)

Create a FilteredClassLoader that hides resources from the given classpath resources.

Since

2.1.0

Parameters

hiddenResources

the resources to hide


constructor(filters: Array<Predicate<String>>)

Create a FilteredClassLoader that filters based on the given predicate.

Parameters

filters

a set of filters to determine when a class name or resource shouldbe hidden. A result of true indicates afiltered class or resource. The input of the predicate can either be the binaryname of a class or a resource name.