See gh-15134
This commit is contained in:
Johnny Lim
2018-11-09 00:41:22 +09:00
committed by Stephane Nicoll
parent 2c3b455b8b
commit fd5aa3ebf1
10 changed files with 23 additions and 27 deletions

View File

@@ -62,6 +62,7 @@ public class FilteredClassLoader extends URLClassLoader {
* Create a {@link FilteredClassLoader} that hides resources from the given
* {@link ClassPathResource classpath resources}.
* @param hiddenResources the resources to hide
* @since 2.1.0
*/
public FilteredClassLoader(ClassPathResource... hiddenResources) {
this(Collections.emptyList(),
@@ -164,6 +165,8 @@ public class FilteredClassLoader extends URLClassLoader {
/**
* Filter to restrict the resources that can be loaded.
*
* @since 2.1.0
*/
public static final class ClassPathResourceFilter implements Predicate<String> {